Re: [RESEND 07/10] regulator: cpcap-regulator: Remove declared and set, but never used variable 'ignore'

From: Tony Lindgren
Date: Mon Jun 29 2020 - 18:06:45 EST


* Lee Jones <lee.jones@xxxxxxxxxx> [200625 19:18]:
> It's okay to not check the return value that you're not conserned
> about, however it is not okay to assign a variable and not check or
> use the result.
>
> Fixes W=1 warnings(s):
>
> drivers/regulator/cpcap-regulator.c:172:13: warning: variable âignoreâ set but not used [-Wunused-but-set-variable]
> 172 | int error, ignore;
> | ^~~~~~
> drivers/regulator/cpcap-regulator.c: In function âcpcap_regulator_disableâ:
> drivers/regulator/cpcap-regulator.c:196:13: warning: variable âignoreâ set but not used [-Wunused-but-set-variable]
> 196 | int error, ignore;

Acked-by: Tony Lindgren <tony@xxxxxxxxxxx>