Commit ce7deda0 authored by Minghao Chi's avatar Minghao Chi Committed by David S. Miller

net/funeth: simplify the return expression of fun_dl_info_get()

Simplify the return expression.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 059d9f41
...@@ -6,13 +6,7 @@ ...@@ -6,13 +6,7 @@
static int fun_dl_info_get(struct devlink *dl, struct devlink_info_req *req, static int fun_dl_info_get(struct devlink *dl, struct devlink_info_req *req,
struct netlink_ext_ack *extack) struct netlink_ext_ack *extack)
{ {
int err; return devlink_info_driver_name_put(req, KBUILD_MODNAME);
err = devlink_info_driver_name_put(req, KBUILD_MODNAME);
if (err)
return err;
return 0;
} }
static const struct devlink_ops fun_dl_ops = { static const struct devlink_ops fun_dl_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment