diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-07-13 16:18:53 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-15 06:58:46 +0200 |
commit | a44c4511ffb2c7387fce6061d20febf75f5399bb (patch) | |
tree | c13b15a5cdfaca9c2ba382c62c4195672c7114d0 /net/core | |
parent | net: devlink: fix a typo in function name devlink_port_new_notifiy() (diff) | |
download | linux-a44c4511ffb2c7387fce6061d20febf75f5399bb.tar.xz linux-a44c4511ffb2c7387fce6061d20febf75f5399bb.zip |
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/core')
-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); |