}
ret = ethnl_ops_begin(dev);
- if (!ret)
+ if (ret < 0)
goto out;
memset(&data->plca_cfg, 0xff,
tb[ETHTOOL_A_PLCA_HEADER],
genl_info_net(info), info->extack,
true);
- if (!ret)
+ if (ret < 0)
return ret;
dev = req_info.dev;
}
ret = ethnl_ops_begin(dev);
- if (!ret)
+ if (ret < 0)
goto out_rtnl;
memset(&plca_cfg, 0xff, sizeof(plca_cfg));
goto out_ops;
ret = ops->set_plca_cfg(dev->phydev, &plca_cfg, info->extack);
- if (!ret)
+ if (ret < 0)
goto out_ops;
ethtool_notify(dev, ETHTOOL_MSG_PLCA_NTF, NULL);
}
ret = ethnl_ops_begin(dev);
- if (!ret)
+ if (ret < 0)
goto out;
memset(&data->plca_st, 0xff,