mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
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 <jiri@nvidia.com> Acked-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ced92571af
commit
a44c4511ff
@ -1724,8 +1724,7 @@ static int devlink_port_new_notify(struct devlink *devlink,
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
err = genlmsg_reply(msg, info);
|
||||
return err;
|
||||
return genlmsg_reply(msg, info);
|
||||
|
||||
out:
|
||||
nlmsg_free(msg);
|
||||
|
Loading…
Reference in New Issue
Block a user