diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-07-13 17:18:53 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-15 07:58:46 +0300 |
commit | a44c4511ffb2c7387fce6061d20febf75f5399bb (patch) | |
tree | c13b15a5cdfaca9c2ba382c62c4195672c7114d0 /net | |
parent | ced92571af24b66c2b5b32a489c144b0b45c93a3 (diff) | |
download | linux-a44c4511ffb2c7387fce6061d20febf75f5399bb.tar.xz |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/devlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index 2f22ce33c3ec..a9776ea923ae 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -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); |