lkml.org 
[lkml]   [2020]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND 07/10] regulator: cpcap-regulator: Remove declared and set, but never used variable 'ignore'
* Lee Jones <lee.jones@linaro.org> [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@atomide.com>

\
 
 \ /
  Last update: 2020-06-30 00:09    [W:0.102 / U:1.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site