Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit b4ecfec5 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown
Browse files

regmap: Remove unnecessary printk for failed allocation

parent 0812d8ff
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2050,10 +2050,9 @@ int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
			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);