rtc: rtc-lpc32xx: 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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-lpc32xx.c

index bfdbcb82d069c223add9e774db0b543a0249d852..f130c08c98f851a3ec97c231ab18a1fe48dc92d8 100644 (file)
@@ -211,10 +211,9 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
        }
 
        rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
-       if (unlikely(!rtc)) {
-               dev_err(&pdev->dev, "Can't allocate memory\n");
+       if (unlikely(!rtc))
                return -ENOMEM;
-       }
+
        rtc->irq = rtcirq;
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);