mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 15:40:50 +00:00
regmap: fix coccinelle warnings
/drivers/base/regmap/regmap.c:717:6-33: WARNING: Comparison to bool. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Nenghua Cao <nhcao@marvell.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
e2f74dc673
commit
53e87f88b1
@ -718,7 +718,7 @@ skip_format_initialization:
|
||||
new->window_start = range_cfg->window_start;
|
||||
new->window_len = range_cfg->window_len;
|
||||
|
||||
if (_regmap_range_add(map, new) == false) {
|
||||
if (!_regmap_range_add(map, new)) {
|
||||
dev_err(map->dev, "Failed to add range %d\n", i);
|
||||
kfree(new);
|
||||
goto err_range;
|
||||
|
Loading…
x
Reference in New Issue
Block a user