Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755734AbaBFISC (ORCPT ); Thu, 6 Feb 2014 03:18:02 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:56535 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755263AbaBFISA (ORCPT ); Thu, 6 Feb 2014 03:18:00 -0500 X-AuditID: cbfee68d-b7fcd6d00000315b-89-52f345379a5e From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Jingoo Han'" , "'Michael Hennerich'" , "'Mike Frysinger'" References: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> In-reply-to: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> Subject: [PATCH 03/12] backlight: adp8870: Remove unnecessary OOM messages Date: Thu, 06 Feb 2014 17:17:59 +0900 Message-id: <000401cf2313$f2297df0$d67c79d0$%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: Ac8jE27bRmoXkttyRH6rTI4zkLyyhgAAF/OQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRmVeSWpSXmKPExsVy+t8zY11z189BBi/vylrMWb+GzeLywkus Fpd3zWGzmHB4M7vFzQk/mB1YPV5ddfS4/P0Ns8eJGb9ZPPq2rGL0+LxJLoA1issmJTUnsyy1 SN8ugSvj6o2rTAXP2Sp+nqxqYLzG2sXIySEhYCKxoW8vG4QtJnHh3nowW0hgGaPEtdvhXYwc YDXfTkR3MXIBhRcxSvw9cJENwvnFKHFzUi8LSAObgJrEly+H2UEaRAT0JdpaNEBqmEEaOrbe YoEYaiux+/RJsMWcAnYS2z61MoHYwgJeEj8a1oItZhFQlXi44jYjiM0LVN+64iQLhC0o8WPy PTCbWUBLYv3O40wQtrzE5jVvmSEOVZd49FcXJCwiYCQx6dseZogSEYl9L94xgtwjIXC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JPzgekpryTe0NjEzMjSyMzCyMTcnDRhJXHeg63WgUIC6YklqdmpqQWpRTBbmDg4pRoY V++KOZDIUR2zPHSGk44w09aFCz9tvsJqkBp8Y8oT1oifauH1HE2341k6TNXPFt/92vA1g8fP pMP8WKHm9DLd1pWf7h4Q0Lqnreb3V5jV5ch6LbXzZqYsVyfslhbZPOP31tigL4ft+cS8Cy9N /qM4588axuoagZJvbmbBc9z/JE+ckZq9/thrJZbijERDLeai4kQAvtEcEEUDAAA= 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/adp8870_bl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/backlight/adp8870_bl.c b/drivers/video/backlight/adp8870_bl.c index 6370720..251af4d 100644 --- a/drivers/video/backlight/adp8870_bl.c +++ b/drivers/video/backlight/adp8870_bl.c @@ -246,10 +246,8 @@ static int adp8870_led_probe(struct i2c_client *client) led = devm_kzalloc(&client->dev, pdata->num_leds * sizeof(*led), GFP_KERNEL); - if (led == NULL) { - dev_err(&client->dev, "failed to alloc memory\n"); + if (led == NULL) return -ENOMEM; - } ret = adp8870_write(client, ADP8870_ISCLAW, pdata->led_fade_law); if (ret) -- 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/