提交 5c336b0a 编写于 作者: J Jingoo Han 提交者: Linus Torvalds

rtc: rtc-lpc32xx: remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they duplicate
the MM subsystem generic OOM message.
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 98e2d21f
...@@ -211,10 +211,9 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev) ...@@ -211,10 +211,9 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
} }
rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL); rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
if (unlikely(!rtc)) { if (unlikely(!rtc))
dev_err(&pdev->dev, "Can't allocate memory\n");
return -ENOMEM; return -ENOMEM;
}
rtc->irq = rtcirq; rtc->irq = rtcirq;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册