orinoco: remove useless variable 'err' in spectrum_cs_suspend()
authorJason Yan <yanaijie@huawei.com>
Mon, 13 Apr 2020 08:20:43 +0000 (16:20 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Apr 2020 08:46:49 +0000 (11:46 +0300)
commit7b9ae69d5441d98ce55da7d651efff2c7ce27551
tree4b77b3009cc9c2c69a6487f1c8862ca13e30f041
parent99cd87d63c0b0724a8e4f1405107ca06c10341e8
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
drivers/net/wireless/intersil/orinoco/spectrum_cs.c