summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-sirfsoc.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-03 23:49:45 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-04 01:21:18 +0200
commit98e2d21faaf96d879e2746cedd96f5c38c04f9b3 (patch)
treeab21b4ee76aecd5b53a44a5a1769d93850eae676 /drivers/rtc/rtc-sirfsoc.c
parentrtc: rtc-rx8025: remove unnecessary OOM messages (diff)
downloadlinux-98e2d21faaf96d879e2746cedd96f5c38c04f9b3.tar.xz
linux-98e2d21faaf96d879e2746cedd96f5c38c04f9b3.zip
rtc: rtc-sirfsoc: 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: Barry Song <Baohua.Song@csr.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/rtc/rtc-sirfsoc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-sirfsoc.c b/drivers/rtc/rtc-sirfsoc.c
index 3eb3642ae299..9e3cbce56ec1 100644
--- a/drivers/rtc/rtc-sirfsoc.c
+++ b/drivers/rtc/rtc-sirfsoc.c
@@ -264,12 +264,8 @@ static int sirfsoc_rtc_probe(struct platform_device *pdev)
rtcdrv = devm_kzalloc(&pdev->dev,
sizeof(struct sirfsoc_rtc_drv), GFP_KERNEL);
- if (rtcdrv == NULL) {
- dev_err(&pdev->dev,
- "%s: can't alloc mem for drv struct\n",
- pdev->name);
+ if (rtcdrv == NULL)
return -ENOMEM;
- }
err = of_property_read_u32(np, "reg", &rtcdrv->rtc_base);
if (err) {