projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c53f6b
)
regmap: Assign boolean values to a bool variable
author
Jiapeng Zhong
<abaci-bugfix@linux.alibaba.com>
Thu, 21 Jan 2021 07:59:21 +0000
(15:59 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 21 Jan 2021 12:42:20 +0000
(12:42 +0000)
Fix the following coccicheck warnings:
./drivers/base/regmap/regcache.c:71:3-18: 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/1611215961-33725-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache.c
patch
|
blob
|
history
diff --git
a/drivers/base/regmap/regcache.c
b/drivers/base/regmap/regcache.c
index 7f4b3b62492ca3849fb08b0bbe888d8b548c12a7..f2469d3435ca384db5f014c031ca3bd2e4687dd9 100644
(file)
--- a/
drivers/base/regmap/regcache.c
+++ b/
drivers/base/regmap/regcache.c
@@
-68,7
+68,7
@@
static int regcache_hw_init(struct regmap *map)
map->cache_bypass = cache_bypass;
if (ret == 0) {
map->reg_defaults_raw = tmp_buf;
- map->cache_free =
1
;
+ map->cache_free =
true
;
} else {
kfree(tmp_buf);
}