Unverified Commit b67498d6 authored by Jiapeng Zhong's avatar Jiapeng Zhong Committed by Mark Brown
Browse files

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng 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: default avatarMark Brown <broonie@kernel.org>
parent 7c53f6b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
		}