Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755776AbaBFITq (ORCPT ); Thu, 6 Feb 2014 03:19:46 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:45960 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752305AbaBFITo (ORCPT ); Thu, 6 Feb 2014 03:19:44 -0500 X-AuditID: cbfee68f-b7f156d00000276c-00-52f3459edb11 From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Jingoo Han'" , "'Eric Miao'" References: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> In-reply-to: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> Subject: [PATCH 04/12] backlight: corgi_lcd: Remove unnecessary OOM messages Date: Thu, 06 Feb 2014 17:19:42 +0900 Message-id: <000501cf2314$2fa64e60$8ef2eb20$%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: Ac8jE27bRmoXkttyRH6rTI4zkLyyhgAAIRXg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBIsWRmVeSWpSXmKPExsVy+t8zA915rp+DDKZ/NreYs34Nm8WOtuNs FpcXXmK1uLxrDpsDi8fOWXfZPU7M+M3i0bdlFaPH501yASxRXDYpqTmZZalF+nYJXBmTV11n K+hjq7jfNpO1gbGDtYuRk0NCwERibmcDE4QtJnHh3no2EFtIYBmjxLWF3F2MHGA1S2a6dDFy AYUXMUrcXnaOHcL5xSix8PYysEFsAmoSX74cZgdpEBHQl2hr0QAxmQWyJU7vdoEYaSux+/RJ sGpOATuJbZ9amUBKhAV8JP6fSgQJswioSrx794YVJMwLVP5xcSZImFdAUOLH5HssIDazgJbE +p3HmSBseYnNa94yQxypLvHory5IWETASOLDx2VQ5SIS+168YwS5V0LgHLvEiSddbBCrBCS+ TT7EAtErK7HpADMkDCQl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c1OTS1ILYLZwsTBKdXAmBVsXHalhyX3 5Y9pdps7OZfUtgguKPR8J726zlzk/KFvX9ecl+g1nsVYc2V75iXrP2qxPDtK3Es7nTvWfY8+ yi9iLxDLta/q+u/f19d5V5x45a29fM5rt66Jx0/n3fg+84WJhXGCy2a7azNmf9yUF+TRI3Xr gsbZ/YF/v/A/YjC/d1b4tf4FGSWW4oxEQy3mouJEAHgzI+85AwAA 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/video/backlight/corgi_lcd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/backlight/corgi_lcd.c b/drivers/video/backlight/corgi_lcd.c index db8db5f..51d18d6 100644 --- a/drivers/video/backlight/corgi_lcd.c +++ b/drivers/video/backlight/corgi_lcd.c @@ -543,10 +543,8 @@ static int corgi_lcd_probe(struct spi_device *spi) } lcd = devm_kzalloc(&spi->dev, sizeof(struct corgi_lcd), GFP_KERNEL); - if (!lcd) { - dev_err(&spi->dev, "failed to allocate memory\n"); + if (!lcd) return -ENOMEM; - } lcd->spi_dev = spi; -- 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/