lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20220831154329.305372-1-cui.jinpeng2@zte.com.cn> Date: Wed, 31 Aug 2022 15:43:29 +0000 From: cgel.zte@...il.com To: kuba@...nel.org, davem@...emloft.net, edumazet@...gle.com Cc: pabeni@...hat.com, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, Jinpeng Cui <cui.jinpeng2@....com.cn>, Zeal Robot <zealci@....com.cn> Subject: [PATCH linux-next] netdevsim: remove redundant variable ret From: Jinpeng Cui <cui.jinpeng2@....com.cn> Return value directly from nsim_dev_reload_create() instead of getting value from redundant variable ret. Reported-by: Zeal Robot <zealci@....com.cn> Signed-off-by: Jinpeng Cui <cui.jinpeng2@....com.cn> --- drivers/net/netdevsim/dev.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c index efea94c27880..794fc0cc73b8 100644 --- a/drivers/net/netdevsim/dev.c +++ b/drivers/net/netdevsim/dev.c @@ -965,7 +965,6 @@ static int nsim_dev_reload_up(struct devlink *devlink, enum devlink_reload_actio struct netlink_ext_ack *extack) { struct nsim_dev *nsim_dev = devlink_priv(devlink); - int ret; if (nsim_dev->fail_reload) { /* For testing purposes, user set debugfs fail_reload @@ -976,8 +975,8 @@ static int nsim_dev_reload_up(struct devlink *devlink, enum devlink_reload_actio } *actions_performed = BIT(DEVLINK_RELOAD_ACTION_DRIVER_REINIT); - ret = nsim_dev_reload_create(nsim_dev, extack); - return ret; + + return nsim_dev_reload_create(nsim_dev, extack); } static int nsim_dev_info_get(struct devlink *devlink, -- 2.25.1
Powered by blists - more mailing lists