rtc: rtc-moxart: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:41 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:17 +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-moxart.c

index c29dee0946e65f73a557251f12b4da47b08b8525..c31846238871465c60bf2d24ac49803d7c399623 100644 (file)
@@ -247,10 +247,8 @@ static int moxart_rtc_probe(struct platform_device *pdev)
        int ret = 0;
 
        moxart_rtc = devm_kzalloc(&pdev->dev, sizeof(*moxart_rtc), GFP_KERNEL);
-       if (!moxart_rtc) {
-               dev_err(&pdev->dev, "devm_kzalloc failed\n");
+       if (!moxart_rtc)
                return -ENOMEM;
-       }
 
        moxart_rtc->gpio_data = of_get_named_gpio(pdev->dev.of_node,
                                                  "gpio-rtc-data", 0);