projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ced9257
)
net: devlink: fix return statement in devlink_port_new_notify()
author
Jiri Pirko
<jiri@nvidia.com>
Wed, 13 Jul 2022 14:18:53 +0000
(16:18 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 15 Jul 2022 04:58:46 +0000
(21:58 -0700)
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>
net/core/devlink.c
patch
|
blob
|
history
diff --git
a/net/core/devlink.c
b/net/core/devlink.c
index 2f22ce33c3ec13394891cc5f69c75abbe21f8d02..a9776ea923aefb12c7a6ed13aab0a2e3e37ea885 100644
(file)
--- 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);