Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751705AbaBGIDw (ORCPT ); Fri, 7 Feb 2014 03:03:52 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:21030 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbaBGIDu (ORCPT ); Fri, 7 Feb 2014 03:03:50 -0500 X-AuditID: cbfee690-b7f266d00000287c-d1-52f4936522c4 From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Alessandro Zummo'" , rtc-linux@googlegroups.com, "'Jingoo Han'" , "'Mark Jackson'" References: <000901cf23da$a04cbca0$e0e635e0$%han@samsung.com> In-reply-to: <000901cf23da$a04cbca0$e0e635e0$%han@samsung.com> Subject: [PATCH 03/10] rtc: rtc-ds1390: Remove unnecessary OOM messages Date: Fri, 07 Feb 2014 17:03:49 +0900 Message-id: <000c01cf23db$2208b640$661a22c0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac8j2qAzLOfgRWJTRVWYElXe2alJBAAAF1pQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHIsWRmVeSWpSXmKPExsVy+t8zA93UyV+CDLpeK1ksuXiV3WLO+jVs FpcXXmK1uLxrDpvF9u9sFvs7Oxgd2Dz2TDzJ5nFixm8Wjzsfp7N59G1Zxegxfd5PJo/Pm+QC 2KK4bFJSczLLUov07RK4Mmb2z2IuWMlW0b3gHGMD41zWLkZODgkBE4lPpz6wQ9hiEhfurWfr YuTiEBJYxijxuPcSG0zRt77lTBCJRYwST/dtA+sQEvjFKHF+gTeIzSagJvHly2GgOAeHiIC+ RFuLBkiYWWALo8SpFl6IcluJX5+XgC3mFLCTWHTiLJgtLOAuce7EHCYQm0VAVeLkt7MsIDYv UP3EGTfZIGxBiR+T77FAzNSSWL/zOBOELS+xec1bZ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0FCrIllxZW5hxglOJiVRHh/NnwJEuJNSaysSi3Kjy8q zUktPsSYDPTnRGYp0eR8YMLKK4k3NDYxM7I0MrMwMjE3J01YSZz3YKt1oJBAemJJanZqakFq EcwWJg5OqQbGBg2R+j3sF9uiTa+ZZJ57oXoKmBxyXm9QKZ6nmVb8cLJCuWTPX3EJbTfhLRu0 zQIkZrnlz2mKLDkcLN419cIHra1r1Ltu3DU5sj/74G4HtdJV7yrDN+xesmFFatUrk44Gy9e7 5jYsS7gY/rvJc5ni8wXnvncs/rb9sgm3k/ec/8tf7V5u9M1MiaU4I9FQi7moOBEA4wR2J04D AAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-ds1390.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index be9d8c0..e67bfcb 100644 --- a/drivers/rtc/rtc-ds1390.c +++ b/drivers/rtc/rtc-ds1390.c @@ -132,10 +132,9 @@ static int ds1390_probe(struct spi_device *spi) spi_setup(spi); chip = devm_kzalloc(&spi->dev, sizeof(*chip), GFP_KERNEL); - if (!chip) { - dev_err(&spi->dev, "unable to allocate device memory\n"); + if (!chip) return -ENOMEM; - } + spi_set_drvdata(spi, chip); res = ds1390_get_reg(&spi->dev, DS1390_REG_SECONDS, &tmp); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/