[PATCH 1/8] mtd: devices: elm: Remove unnecessary OOM messages
Gupta, Pekon
pekon at ti.com
Thu Feb 6 01:27:23 EST 2014
>From: Jingoo Han [mailto:jg1.han at samsung.com]
>
>The site-specific OOM messages are unnecessary, because they
>duplicate the MM subsystem generic OOM message.
>
>Signed-off-by: Jingoo Han <jg1.han at samsung.com>
>---
> drivers/mtd/devices/elm.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
>diff --git a/drivers/mtd/devices/elm.c b/drivers/mtd/devices/elm.c
>index d1dd6a3..437ed3a 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;
>
>--
>1.7.10.4
>
Acked-by: Pekon Gupta <pekon at ti.com>
+ avinashphilipk at gmail.com
with regards, pekon
More information about the linux-mtd
mailing list