Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755820AbaBFIUk (ORCPT ); Thu, 6 Feb 2014 03:20:40 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:29023 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752305AbaBFIUi (ORCPT ); Thu, 6 Feb 2014 03:20:38 -0500 X-AuditID: cbfee691-b7efc6d0000039d3-fb-52f345d36dec From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Jingoo Han'" , "'Maxime Ripard'" , "'Alexandre Belloni'" References: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> In-reply-to: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> Subject: [PATCH 05/12] backlight: hx8357: Remove unnecessary OOM messages Date: Thu, 06 Feb 2014 17:20:35 +0900 Message-id: <000601cf2314$4f66a9c0$ee33fd40$%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: Ac8jE27bRmoXkttyRH6rTI4zkLyyhgAAMIJg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrIIsWRmVeSWpSXmKPExsVy+t8zI93Lrp+DDL4ss7KYs34Nm0XHtcVM FpcXXmK1uLxrDpvF1k17mR1YPZ5susjocWLGbxaPvi2rGD0+b5ILYInisklJzcksSy3St0vg ypj85zV7wWy2ir99e1gbGPtYuxg5OSQETCS2fJsJZYtJXLi3ng3EFhJYxiixZnkCTM22k1+Y uhi5gOKLGCX2nP/KAuH8Aipa/Rysg01ATeLLl8PsXYwcHCIC+hJtLRogNcwCOxgl3nS0s0JM tZXYffokmM0pYCex7VMrE4gtLOApcWdyCwuIzSKgKrHtzRqwOC9Q/fMpR6BsQYkfk++B1TAL aEms33mcCcKWl9i85i0zyF4JAXWJR391QcIiAkYS/258gyoRkdj34h0jxDO32CW2LZCGWCUg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TOyNDKzMDIxNydNWEmc92CrdaCQQHpiSWp2ampBahHMFiYOTqkGxvWL z31c9jdPdSJn1ATbyl+L1y5oTV6fNNHDcJuc3HTlVSW2Z951Gho0vy7SzeLqW5hbN6P3yb/E qU4f4vrvm77+nrrVxlz5w5YfJ3I56qLbqie93eGQcXvXuUb/3GN7NLcLHbB9dc1J5Gr9nr0S N8LZPkyxblhUI7tLYf7lKxM1g6zja3X4lymxFGckGmoxFxUnAgAnpvg4QwMAAA== 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/hx8357.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index 985e854..23f50b9 100644 --- a/drivers/video/backlight/hx8357.c +++ b/drivers/video/backlight/hx8357.c @@ -587,10 +587,8 @@ static int hx8357_probe(struct spi_device *spi) int i, ret; lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); - if (!lcd) { - dev_err(&spi->dev, "Couldn't allocate lcd internal structure!\n"); + if (!lcd) return -ENOMEM; - } ret = spi_setup(spi); if (ret < 0) { -- 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/