summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorNenghua Cao <nhcao@marvell.com>2014-02-21 16:05:45 +0800
committerMark Brown <broonie@linaro.org>2014-02-22 11:48:36 +0900
commit53e87f88b14c011692ab2cb8c8abc994bdd28ae9 (patch)
treea957e42dd2ba1498dedbda6b5b7f3c37740cb4af /drivers/base
parente2f74dc6739731a6b6900946a21ac235181aa60f (diff)
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>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 9a426c081484..92d9b79ff93e 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -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;