rtc: rtc-spear: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:46 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:18 +0000 (16:21 -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: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-spear.c

index c492cf0ab8cd64c113f34754c865768d30007468..d2cdb9823a1573225c9f61c18ed4513fb8cb8126 100644 (file)
@@ -365,10 +365,8 @@ static int spear_rtc_probe(struct platform_device *pdev)
        }
 
        config = devm_kzalloc(&pdev->dev, sizeof(*config), GFP_KERNEL);
-       if (!config) {
-               dev_err(&pdev->dev, "out of memory\n");
+       if (!config)
                return -ENOMEM;
-       }
 
        /* alarm irqs */
        irq = platform_get_irq(pdev, 0);