Commit 0bf6a1e8 authored by Jiapeng Zhong's avatar Jiapeng Zhong Committed by Guenter Roeck

hwmon: (applesmc) Assign boolean values to a bool variable

Fix the following coccicheck warnings:

./drivers/hwmon/applesmc.c:568:6-23: WARNING: Assignment of
0/1 to bool variable.
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Link: https://lore.kernel.org/r/1611124870-125658-1-git-send-email-abaci-bugfix@linux.alibaba.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent bd433537
...@@ -565,7 +565,7 @@ static int applesmc_init_index(struct applesmc_registers *s) ...@@ -565,7 +565,7 @@ static int applesmc_init_index(struct applesmc_registers *s)
static int applesmc_init_smcreg_try(void) static int applesmc_init_smcreg_try(void)
{ {
struct applesmc_registers *s = &smcreg; struct applesmc_registers *s = &smcreg;
bool left_light_sensor = 0, right_light_sensor = 0; bool left_light_sensor = false, right_light_sensor = false;
unsigned int count; unsigned int count;
u8 tmp[1]; u8 tmp[1];
int ret; int ret;
......
Markdown is supported
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