|
@@ -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);
|
|
|
|