Commit a44c4511 authored by Jiri Pirko's avatar Jiri Pirko Committed by Jakub Kicinski

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: default avatarJiri Pirko <jiri@nvidia.com>
Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ced92571
......@@ -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);
......
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