mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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:
parent
98e2d21faa
commit
5c336b0a7a
1 changed files with 2 additions and 3 deletions
|
|
@ -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 a new issue