mtd: devices: elm: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 6 Feb 2014 06:08:53 +0000 (15:08 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:24 +0000 (22:42 -0700)
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>
drivers/mtd/devices/elm.c

index e2c073c..f160d2c 100644 (file)
@@ -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;