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>
This commit is contained in:
parent
059d9f413e
commit
ce7deda0d5
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user