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:
Jiri Pirko 2022-07-13 16:18:53 +02:00 committed by Jakub Kicinski
parent ced92571af
commit a44c4511ff

View File

@ -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);