diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2018-02-22 12:59:11 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-26 11:00:31 +0000 |
commit | b4ecfec5ee3f282a4ac0876de332876fec9b488c (patch) | |
tree | 38b6164ec9f189e3225ed7c725b82d1715f8f4e8 | |
parent | 0812d8ffa9955251ba0077488d4408d8987ec091 (diff) | |
download | linux-b4ecfec5ee3f282a4ac0876de332876fec9b488c.tar.bz2 |
regmap: Remove unnecessary printk for failed allocation
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/base/regmap/regmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 8fe6e08fa41e..707b0450ad72 100644 --- a/drivers/base/regmap/regmap.c +++ b/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); |