diff options
author | Nenghua Cao <nhcao@marvell.com> | 2014-02-21 03:05:45 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-21 21:48:36 -0500 |
commit | 53e87f88b14c011692ab2cb8c8abc994bdd28ae9 (patch) | |
tree | a957e42dd2ba1498dedbda6b5b7f3c37740cb4af /drivers/base/regmap | |
parent | e2f74dc6739731a6b6900946a21ac235181aa60f (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/regmap')
-rw-r--r-- | drivers/base/regmap/regmap.c | 2 |
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: | |||
718 | new->window_start = range_cfg->window_start; | 718 | new->window_start = range_cfg->window_start; |
719 | new->window_len = range_cfg->window_len; | 719 | new->window_len = range_cfg->window_len; |
720 | 720 | ||
721 | if (_regmap_range_add(map, new) == false) { | 721 | if (!_regmap_range_add(map, new)) { |
722 | dev_err(map->dev, "Failed to add range %d\n", i); | 722 | dev_err(map->dev, "Failed to add range %d\n", i); |
723 | kfree(new); | 723 | kfree(new); |
724 | goto err_range; | 724 | goto err_range; |