Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932109AbaBFIYt (ORCPT ); Thu, 6 Feb 2014 03:24:49 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:29904 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755174AbaBFIYs (ORCPT ); Thu, 6 Feb 2014 03:24:48 -0500 X-AuditID: cbfee68d-b7fcd6d00000315b-7b-52f346ce5830 From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Jingoo Han'" , "'Alberto Panizzo'" , "'Alberto Panizzo'" References: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> In-reply-to: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> Subject: [PATCH 08/12] backlight: l4f00242t03: Remove unnecessary OOM messages Date: Thu, 06 Feb 2014 17:24:45 +0900 Message-id: <000901cf2314$e4ae9b00$ae0bd100$%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: Ac8jE27bRmoXkttyRH6rTI4zkLyyhgAASmew Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOIsWRmVeSWpSXmKPExsVy+t8zA91zbp+DDK6t47WYs34Nm8WZSRNY LC4vvMRqcXnXHDaLPwfWMTqweqz9eJ/VY+esu+weJ2b8ZvHo27KK0ePzJrkA1igum5TUnMyy 1CJ9uwSujLfPJzMV3GCr2Dqzl7WB8ThrFyMnh4SAicSaK6vYIGwxiQv31gPZXBxCAssYJRq6 17HDFP2fv4oRIrGIUeLX7mPMEM4vRonHl7+DjWITUJP48uUwUAcHh4iAvkRbiwZIDbPAekaJ 2Zc+MILUCAnYSuw+fRKsnlPATmLbp1YmEFtYwE9i95etzCC9LAKqEhMP8oOEeYHKp/X3sUPY ghI/Jt9jAbGZBbQk1u88zgRhy0tsXvMWrFVCQF3i0V9dkLCIgJFEc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q/jlIiDclsbIqtSg/vqg0J7X4 EGMy0J8TmaVEk/OBKSqvJN7Q2MTMyNLIzMLIxNycNGElcd4DrdaBQgLpiSWp2ampBalFMFuY ODilGhizfz0t3PY04HHw68bndW++yZ7deWyK26YT7KufNMnrnD7xwudZ6dRyPyc3AdPgE14H jzR/3i9lr6hZ8aFueb/f5fgLKx2TQ1OyalomJT6fuoNn8RsN/pszZ+ROXNE194ymde/3jqh2 RuaQ9XOmzHVZ4edltaasUKLM+XvXBK2GgHCdx6efv5JVYinOSDTUYi4qTgQAiBxMNkcDAAA= 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/l4f00242t03.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c index 63e7638..5fa2649 100644 --- a/drivers/video/backlight/l4f00242t03.c +++ b/drivers/video/backlight/l4f00242t03.c @@ -181,11 +181,8 @@ static int l4f00242t03_probe(struct spi_device *spi) priv = devm_kzalloc(&spi->dev, sizeof(struct l4f00242t03_priv), GFP_KERNEL); - - if (priv == NULL) { - dev_err(&spi->dev, "No memory for this device.\n"); + if (priv == NULL) return -ENOMEM; - } spi_set_drvdata(spi, priv); spi->bits_per_word = 9; -- 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/