regmap: fix coccinelle warnings
authorNenghua Cao <nhcao@marvell.com>
Fri, 21 Feb 2014 08:05:45 +0000 (16:05 +0800)
committerMark Brown <broonie@linaro.org>
Sat, 22 Feb 2014 02:48:36 +0000 (11:48 +0900)
   /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>
drivers/base/regmap/regmap.c

index 9a426c08148480bd91631992ac9fcdf3b9694a36..92d9b79ff93eda07970071f384403004c9bab901 100644 (file)
@@ -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;