aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-02-06 01:08:53 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-03-11 01:42:24 -0400
commit834fa8a56593044f98a0da68bc21d1a31d05124f (patch)
tree106bfee43cdf76185a07431d24b976df9193843c
parent0a21552a6e8ab9d3bacd490f5b94a178ce4d661d (diff)
mtd: devices: elm: Remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Pekon Gupta <pekon@ti.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-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