[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220712104853.2831646-4-jiri@resnulli.us>
Date: Tue, 12 Jul 2022 12:48:53 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
edumazet@...gle.com, mlxsw@...dia.com, saeedm@...dia.com,
moshe@...dia.com
Subject: [patch net-next 3/3] net: devlink: fix return statement in devlink_port_new_notify()
From: Jiri Pirko <jiri@...dia.com>
Return directly without intermediate value store at the end of
devlink_port_new_notify() function.
Signed-off-by: Jiri Pirko <jiri@...dia.com>
---
net/core/devlink.c | 3 +--
1 file changed, 1 insertion(+), 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);
--
2.35.3
Powered by blists - more mailing lists