hwmon: (applesmc) Assign boolean values to a bool variable
Subsystems (2)
PATCH 1/1 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 Abaci Robot <[email protected]>
Signed-off-by Jiapeng Zhong <[email protected]>
--- drivers/hwmon/applesmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/applesmc.c +1 -1
@@ -565,7 +565,7 @@ static int applesmc_init_index(struct applesmc_registers *s)static int applesmc_init_smcreg_try (void ) {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;u8 tmp[1 ];int ret;
Signature · 1 line
1.8.3.1
Quoted 7 lines · Jiapeng Zhong
Fix the following coccicheck warnings:
./drivers/hwmon/applesmc.c:568:6-23: WARNING: Assignment of 0/1 to bool variable.
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Zhong <[email protected]>
Applied.
Thanks,
Guenter