]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
rtc: rtc-davinci: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:39 +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-davinci.c

index 24677ef8c39ad37b9d920862242f0b245337de18..1f3495e4e6347f0acf4209a22b0a509ef55ad5c7 100644 (file)
@@ -486,10 +486,8 @@ static int __init davinci_rtc_probe(struct platform_device *pdev)
        int ret = 0;
 
        davinci_rtc = devm_kzalloc(&pdev->dev, sizeof(struct davinci_rtc), GFP_KERNEL);
-       if (!davinci_rtc) {
-               dev_dbg(dev, "could not allocate memory for private data\n");
+       if (!davinci_rtc)
                return -ENOMEM;
-       }
 
        davinci_rtc->irq = platform_get_irq(pdev, 0);
        if (davinci_rtc->irq < 0) {