diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-03 14:49:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 16:21:18 -0700 |
commit | 681acc9f53210f8a4c1b280b077f2cd73e63ac4c (patch) | |
tree | c772241e14bdfabada8ae63ce9eaca1ab6fdcd20 /drivers/rtc/rtc-spear.c | |
parent | 5c336b0a7a7636d81e9960bea29574e561df4d74 (diff) | |
download | linux-stable-681acc9f53210f8a4c1b280b077f2cd73e63ac4c.tar.gz linux-stable-681acc9f53210f8a4c1b280b077f2cd73e63ac4c.tar.bz2 linux-stable-681acc9f53210f8a4c1b280b077f2cd73e63ac4c.zip |
rtc: rtc-spear: 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>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-spear.c')
-rw-r--r-- | drivers/rtc/rtc-spear.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-spear.c b/drivers/rtc/rtc-spear.c index c492cf0ab8cd..d2cdb9823a15 100644 --- a/drivers/rtc/rtc-spear.c +++ b/drivers/rtc/rtc-spear.c @@ -365,10 +365,8 @@ static int spear_rtc_probe(struct platform_device *pdev) } config = devm_kzalloc(&pdev->dev, sizeof(*config), GFP_KERNEL); - if (!config) { - dev_err(&pdev->dev, "out of memory\n"); + if (!config) return -ENOMEM; - } /* alarm irqs */ irq = platform_get_irq(pdev, 0); |