projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd43353
)
hwmon: (applesmc) Assign boolean values to a bool variable
author
Jiapeng Zhong
<abaci-bugfix@linux.alibaba.com>
Wed, 20 Jan 2021 06:41:10 +0000
(14:41 +0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Thu, 28 Jan 2021 01:44:18 +0000
(17:44 -0800)
Fix the following coccicheck warnings:
./drivers/hwmon/applesmc.c:568:6-23: WARNING: Assignment of
0/1 to bool variable.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Link:
https://lore.kernel.org/r/1611124870-125658-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/applesmc.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/applesmc.c
b/drivers/hwmon/applesmc.c
index 89207af81c480a3fd0c98bd1970cb0768ec43163..28b137eedf2e0a916bd212af673ce46c50d0689a 100644
(file)
--- a/
drivers/hwmon/applesmc.c
+++ b/
drivers/hwmon/applesmc.c
@@
-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;