Skip to contentSkip to conversation

driver: regmap: fix coccinelle warnings

PATCH Applied Nenghua Cao 2 participants 2 messages Feb 21, 2014 – Feb 22, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 driver: regmap: fix coccinelle warnings

From: Nenghua Cao <[email protected]>

/drivers/base/regmap/regmap.c:717:6-33: WARNING:
Comparison to bool.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

---
 drivers/base/regmap/regmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/base/regmap/regmap.c +1 -1
index 4b2ed0c..78fc54c 100644
@@ -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;
Signature · 1 line
1.7.0.4
maintainer Applied
#1 lore raw
Quoted 4 lines · Nenghua Cao

From: Nenghua Cao <[email protected]>

   /drivers/base/regmap/regmap.c:717:6-33: WARNING:

Comparison to bool.

Applied, thanks. Please use subject lines consistent with the subsystem.