summaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-13 16:20:43 +0800
committerKalle Valo <kvalo@codeaurora.org>2020-04-15 11:46:49 +0300
commit7b9ae69d5441d98ce55da7d651efff2c7ce27551 (patch)
tree4b77b3009cc9c2c69a6487f1c8862ca13e30f041 /drivers/net/wireless
parent99cd87d63c0b0724a8e4f1405107ca06c10341e8 (diff)
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@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200413082043.22468-1-yanaijie@huawei.com
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/intersil/orinoco/spectrum_cs.c3
1 files changed, 1 insertions, 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