diff options
author | Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> | 2021-01-21 08:59:21 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-01-21 13:42:20 +0100 |
commit | b67498d630037f509a14b208b1994b38714372ad (patch) | |
tree | b107222f51f5d6b1f6e7d520d7f5eec1d3f0ae4d /drivers/base/regmap/regcache.c | |
parent | Linux 5.11-rc3 (diff) | |
download | linux-b67498d630037f509a14b208b1994b38714372ad.tar.xz linux-b67498d630037f509a14b208b1994b38714372ad.zip |
regmap: Assign boolean values to a bool variable
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>
Diffstat (limited to 'drivers/base/regmap/regcache.c')
-rw-r--r-- | drivers/base/regmap/regcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 7f4b3b62492c..f2469d3435ca 100644 --- 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); } |