Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755656AbaBFIRB (ORCPT ); Thu, 6 Feb 2014 03:17:01 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:28279 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753942AbaBFIQ7 (ORCPT ); Thu, 6 Feb 2014 03:16:59 -0500 X-AuditID: cbfee691-b7efc6d0000039d3-17-52f344fa8f9f From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Jingoo Han'" , "'Michael Hennerich'" References: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> In-reply-to: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> Subject: [PATCH 02/12] backlight: adp8860: Remove unnecessary OOM messages Date: Thu, 06 Feb 2014 17:16:57 +0900 Message-id: <000301cf2313$cdaeced0$690c6c70$%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: Ac8jE27bRmoXkttyRH6rTI4zkLyyhgAAEjew Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsVy+t8zQ91fLp+DDHYc57KYs34Nm8XlhZdY LS7vmsNmMeHwZnYHFo9XVx09Tsz4zeLRt2UVo8fnTXIBLFFcNimpOZllqUX6dglcGSsmrGYr 6GCv+Pp9LWMD41fWLkZODgkBE4nuCd+ZIWwxiQv31rN1MXJxCAksY5R4cmMqXNHm+dPBbCGB 6YwSmx4EQhT9YpSY/uMcI0iCTUBN4suXw+xdjBwcIgL6Em0tGiBhZoEqiX1N85ghem0ldp8+ CTaHU8BOYtunViYQW1jAS2JW20SwOIuAqsTFV2/ZQGxeoPorW/ezQNiCEj8m32OBmKklsX7n cSYIW15i85q3zCBrJQTUJR791QUJiwgYSWxbM50NokREYt+Ld4wQr5xjl1jwzBxilYDEt8mH WCBaZ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Q+0WgcKCaQnlqRmp6YWpBbBbGHi4JRqYLTXvRK15VXVNDm3 4qwFSmfKtjGf/PZswxvXXMnc3cc2vtaNUC48fbtJV3df8Z2JXWLf38U7zLVO3DK5btWhqREf L++//vvfn/DKfL8vM3xs1Xe9FmPWf2zx01h1D1/wrMXHLsxbUi3n++szW98fteBEofZjgocu ZJxlvuzaLVdbIHBS8+EJdT8lluKMREMt5qLiRAAPCADkOwMAAA== 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/adp8860_bl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/backlight/adp8860_bl.c b/drivers/video/backlight/adp8860_bl.c index 9d65671..be8d83d 100644 --- a/drivers/video/backlight/adp8860_bl.c +++ b/drivers/video/backlight/adp8860_bl.c @@ -224,10 +224,8 @@ static int adp8860_led_probe(struct i2c_client *client) led = devm_kzalloc(&client->dev, sizeof(*led) * pdata->num_leds, GFP_KERNEL); - if (led == NULL) { - dev_err(&client->dev, "failed to alloc memory\n"); + if (led == NULL) return -ENOMEM; - } ret = adp8860_write(client, ADP8860_ISCFR, pdata->led_fade_law); ret = adp8860_write(client, ADP8860_ISCT1, -- 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/