rtc: rtc-at32ap700x: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:38 +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>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-at32ap700x.c

index 3161ab5263ed93329fce90d5e537ced05ff3d5b2..aee3387fb0992b68f256d714291670750ecb24c7 100644 (file)
@@ -204,10 +204,8 @@ static int __init at32_rtc_probe(struct platform_device *pdev)
 
        rtc = devm_kzalloc(&pdev->dev, sizeof(struct rtc_at32ap700x),
                           GFP_KERNEL);
-       if (!rtc) {
-               dev_dbg(&pdev->dev, "out of memory\n");
+       if (!rtc)
                return -ENOMEM;
-       }
 
        regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!regs) {