From: Jingoo Han Date: Thu, 3 Apr 2014 21:49:45 +0000 (-0700) Subject: rtc: rtc-sirfsoc: remove unnecessary OOM messages X-Git-Tag: v4.9.8~6645^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98e2d21faaf96d879e2746cedd96f5c38c04f9b3;p=platform%2Fkernel%2Flinux-rpi3.git 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 Acked-by: Barry Song Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-sirfsoc.c b/drivers/rtc/rtc-sirfsoc.c index 3eb3642..9e3cbce 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) {