rtc: rtc-sirfsoc: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:45 +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: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-sirfsoc.c

index 3eb3642ae299fe66f6fb6bd57db39c8955d2d2f1..9e3cbce56ec1ccca2e62541361d7d4fb288c4a8c 100644 (file)
@@ -264,12 +264,8 @@ static int sirfsoc_rtc_probe(struct platform_device *pdev)
 
        rtcdrv = devm_kzalloc(&pdev->dev,
                sizeof(struct sirfsoc_rtc_drv), GFP_KERNEL);
-       if (rtcdrv == NULL) {
-               dev_err(&pdev->dev,
-                       "%s: can't alloc mem for drv struct\n",
-                       pdev->name);
+       if (rtcdrv == NULL)
                return -ENOMEM;
-       }
 
        err = of_property_read_u32(np, "reg", &rtcdrv->rtc_base);
        if (err) {