Revert "mtd: powernv: Add check devm_kasprintf() returned value"
This reverts commit 9e44b0cf99
.
This commit is contained in:
parent
3fe0cf26f0
commit
c853cd8bc0
1 changed files with 0 additions and 3 deletions
|
@ -204,9 +204,6 @@ static int powernv_flash_set_driver_info(struct device *dev,
|
|||
* get them
|
||||
*/
|
||||
mtd->name = devm_kasprintf(dev, GFP_KERNEL, "%pOFP", dev->of_node);
|
||||
if (!mtd->name)
|
||||
return -ENOMEM;
|
||||
|
||||
mtd->type = MTD_NORFLASH;
|
||||
mtd->flags = MTD_WRITEABLE;
|
||||
mtd->size = size;
|
||||
|
|
Loading…
Add table
Reference in a new issue