diff options
author | Minghao Chi <chi.minghao@zte.com.cn> | 2022-04-29 12:01:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-30 15:56:02 +0300 |
commit | ce7deda0d5cdbd84e31aa17d95a5896966f2ed83 (patch) | |
tree | 3e95e56eabb0f8181b3b1c58135d6f9d4a06accc /drivers/net/ethernet/fungible/funeth | |
parent | 059d9f413efe3ed954e2df37511a4c0e514662f7 (diff) | |
download | linux-ce7deda0d5cdbd84e31aa17d95a5896966f2ed83.tar.xz |
net/funeth: simplify the return expression of fun_dl_info_get()
Simplify the return expression.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/fungible/funeth')
-rw-r--r-- | drivers/net/ethernet/fungible/funeth/funeth_devlink.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/ethernet/fungible/funeth/funeth_devlink.c b/drivers/net/ethernet/fungible/funeth/funeth_devlink.c index a849b3c6b01f..d50c222948b4 100644 --- a/drivers/net/ethernet/fungible/funeth/funeth_devlink.c +++ b/drivers/net/ethernet/fungible/funeth/funeth_devlink.c @@ -6,13 +6,7 @@ static int fun_dl_info_get(struct devlink *dl, struct devlink_info_req *req, struct netlink_ext_ack *extack) { - int err; - - err = devlink_info_driver_name_put(req, KBUILD_MODNAME); - if (err) - return err; - - return 0; + return devlink_info_driver_name_put(req, KBUILD_MODNAME); } static const struct devlink_ops fun_dl_ops = { |