Commit 5c336b0a7a7636d81e9960bea29574e561df4d74
Committed by
Linus Torvalds
1 parent
98e2d21faa
Exists in
master
and in
13 other branches
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>
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
drivers/rtc/rtc-lpc32xx.c
... | ... | @@ -211,10 +211,9 @@ |
211 | 211 | } |
212 | 212 | |
213 | 213 | rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL); |
214 | - if (unlikely(!rtc)) { | |
215 | - dev_err(&pdev->dev, "Can't allocate memory\n"); | |
214 | + if (unlikely(!rtc)) | |
216 | 215 | return -ENOMEM; |
217 | - } | |
216 | + | |
218 | 217 | rtc->irq = rtcirq; |
219 | 218 | |
220 | 219 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |