Re: [PATCH] orinoco: remove useless variable 'err' in spectrum_cs_suspend()

From: Kalle Valo
Date: Wed Apr 15 2020 - 04:47:40 EST


Jason Yan <yanaijie@xxxxxxxxxx> wrote:

> 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@xxxxxxxxxx>
> Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>

Patch applied to wireless-drivers-next.git, thanks.

7b9ae69d5441 orinoco: remove useless variable 'err' in spectrum_cs_suspend()

--
https://patchwork.kernel.org/patch/11485247/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches