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

rtc: rtc-pm8xxx: 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
49ae425b ee567199

+1 -3
+1 -3
drivers/rtc/rtc-pm8xxx.c
··· 396 396 rtc_write_enable = pdata->rtc_write_enable; 397 397 398 398 rtc_dd = devm_kzalloc(&pdev->dev, sizeof(*rtc_dd), GFP_KERNEL); 399 - if (rtc_dd == NULL) { 400 - dev_err(&pdev->dev, "Unable to allocate memory!\n"); 399 + if (rtc_dd == NULL) 401 400 return -ENOMEM; 402 - } 403 401 404 402 /* Initialise spinlock to protect RTC control register */ 405 403 spin_lock_init(&rtc_dd->ctrl_reg_lock);