mirror of https://gitee.com/openkylin/linux.git
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 <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
98e2d21faa
commit
5c336b0a7a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue