From: Jingoo Han Date: Thu, 6 Feb 2014 06:08:53 +0000 (+0900) Subject: mtd: devices: elm: Remove unnecessary OOM messages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=834fa8a56593044f98a0da68bc21d1a31d05124f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Pekon Gupta Signed-off-by: Brian Norris --- 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) struct elm_info *info; info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); - if (!info) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (!info) return -ENOMEM; - } info->dev = &pdev->dev;