Browse Source

regmap: Remove unnecessary printk for failed allocation

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Charles Keepax 7 years ago
parent
commit
b4ecfec5ee
1 changed files with 2 additions and 3 deletions
  1. 2 3
      drivers/base/regmap/regmap.c

+ 2 - 3
drivers/base/regmap/regmap.c

@@ -2050,10 +2050,9 @@ out:
 			return -EINVAL;
 
 		wval = kmemdup(val, val_count * val_bytes, map->alloc_flags);
-		if (!wval) {
-			dev_err(map->dev, "Error in memory allocation\n");
+		if (!wval)
 			return -ENOMEM;
-		}
+
 		for (i = 0; i < val_count * val_bytes; i += val_bytes)
 			map->format.parse_inplace(wval + i);