aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/devices/elm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/devices/elm.c b/drivers/mtd/devices/elm.c
index e2c073c5a7cc..f160d2c6cd59 100644
--- a/drivers/mtd/devices/elm.c
+++ b/drivers/mtd/devices/elm.c
@@ -354,10 +354,8 @@ static int elm_probe(struct platform_device *pdev)
354 struct elm_info *info; 354 struct elm_info *info;
355 355
356 info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); 356 info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
357 if (!info) { 357 if (!info)
358 dev_err(&pdev->dev, "failed to allocate memory\n");
359 return -ENOMEM; 358 return -ENOMEM;
360 }
361 359
362 info->dev = &pdev->dev; 360 info->dev = &pdev->dev;
363 361