[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200413082043.22468-1-yanaijie@huawei.com>
Date: Mon, 13 Apr 2020 16:20:43 +0800
From: Jason Yan <yanaijie@...wei.com>
To: <kvalo@...eaurora.org>, <davem@...emloft.net>,
<yanaijie@...wei.com>, <linux-wireless@...r.kernel.org>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: Hulk Robot <hulkci@...wei.com>
Subject: [PATCH] orinoco: remove useless variable 'err' in spectrum_cs_suspend()
Fix the following coccicheck warning:
drivers/net/wireless/intersil/orinoco/spectrum_cs.c:281:5-8: Unneeded
variable: "err". Return "0" on line 286
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Jason Yan <yanaijie@...wei.com>
---
drivers/net/wireless/intersil/orinoco/spectrum_cs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/wireless/intersil/orinoco/spectrum_cs.c b/drivers/net/wireless/intersil/orinoco/spectrum_cs.c
index b60048c95e0a..291ef97ed45e 100644
--- a/drivers/net/wireless/intersil/orinoco/spectrum_cs.c
+++ b/drivers/net/wireless/intersil/orinoco/spectrum_cs.c
@@ -278,12 +278,11 @@ static int
spectrum_cs_suspend(struct pcmcia_device *link)
{
struct orinoco_private *priv = link->priv;
- int err = 0;
/* Mark the device as stopped, to block IO until later */
orinoco_down(priv);
- return err;
+ return 0;
}
static int
--
2.21.1
Powered by blists - more mailing lists