Skip to content
Commit dfd122fe authored by Artur Weber's avatar Artur Weber Committed by Lee Jones
Browse files

backlight: lp855x: Drop ret variable in brightness change function



Fixes the following warning:

drivers/video/backlight/lp855x_bl.c:252:7: warning: variable 'ret' is used
uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]

Signed-off-by: default avatarArtur Weber <aweber.kernel@gmail.com>
Fixes: 5145531b ("backlight: lp855x: Catch errors when changing brightness")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308091728.NEJhgUPP-lkp@intel.com/


Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20230809114216.4078-1-aweber.kernel@gmail.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent fe1328b5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment