Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: rtc-nuc900: 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>

authored by

Jingoo Han and committed by
Linus Torvalds
ee567199 4410af6e

+2 -3
+2 -3
drivers/rtc/rtc-nuc900.c
··· 229 229 230 230 nuc900_rtc = devm_kzalloc(&pdev->dev, sizeof(struct nuc900_rtc), 231 231 GFP_KERNEL); 232 - if (!nuc900_rtc) { 233 - dev_err(&pdev->dev, "kzalloc nuc900_rtc failed\n"); 232 + if (!nuc900_rtc) 234 233 return -ENOMEM; 235 - } 234 + 236 235 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 237 236 nuc900_rtc->rtc_reg = devm_ioremap_resource(&pdev->dev, res); 238 237 if (IS_ERR(nuc900_rtc->rtc_reg))