Skip to content

Commit a44c451

Browse files
Jiri Pirkokuba-moo
authored andcommitted
net: devlink: fix return statement in devlink_port_new_notify()
Return directly without intermediate value store at the end of devlink_port_new_notify() function. Signed-off-by: Jiri Pirko <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ced9257 commit a44c451

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/core/devlink.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,8 +1724,7 @@ static int devlink_port_new_notify(struct devlink *devlink,
17241724
if (err)
17251725
goto out;
17261726

1727-
err = genlmsg_reply(msg, info);
1728-
return err;
1727+
return genlmsg_reply(msg, info);
17291728

17301729
out:
17311730
nlmsg_free(msg);

0 commit comments

Comments
 (0)