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: Jingoo Han <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Jingoo Han 2014-04-03 14:49:46 -07:00 • committed by Linus Torvalds
commit 5c336b0a7a

View file

@ -211,10 +211,9 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
}
rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
if (unlikely(!rtc)) {
dev_err(&pdev->dev, "Can't allocate memory\n");
if (unlikely(!rtc))
return -ENOMEM;
}
rtc->irq = rtcirq;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);