diff options
author | Nenghua Cao <nhcao@marvell.com> | 2014-02-21 08:05:45 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 02:48:36 (GMT) |
commit | 53e87f88b14c011692ab2cb8c8abc994bdd28ae9 (patch) | |
tree | a957e42dd2ba1498dedbda6b5b7f3c37740cb4af /drivers/base | |
parent | e2f74dc6739731a6b6900946a21ac235181aa60f (diff) | |
download | linux-53e87f88b14c011692ab2cb8c8abc994bdd28ae9.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 9a426c0..92d9b79 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; |