Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932436AbaBFIcc (ORCPT ); Thu, 6 Feb 2014 03:32:32 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:9572 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755504AbaBFIcb (ORCPT ); Thu, 6 Feb 2014 03:32:31 -0500 X-AuditID: cbfee690-b7f266d00000287c-cf-52f3489d5eda From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Jingoo Han'" , "'Matthias Kaehlcke'" References: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> In-reply-to: <000101cf2313$6ef38e80$4cdaab80$%han@samsung.com> Subject: [PATCH 12/12] backlight: tps65217_bl: Remove unnecessary OOM messages Date: Thu, 06 Feb 2014 17:32:29 +0900 Message-id: <000d01cf2315$f90a7050$eb1f50f0$%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: Ac8jE27bRmoXkttyRH6rTI4zkLyyhgAAmfmg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsVy+t8zY915Hp+DDJazWsxZv4bN4vLCS6wW l3fNYbO48WsykwOLx4+5f9g9Tsz4zeLRt2UVo8fnTXIBLFFcNimpOZllqUX6dglcGZ0XLzMW NHFW/Du0maWB8QB7FyMnh4SAicTOWRdZIWwxiQv31rN1MXJxCAksY5Q4s/gsE0zR05cnWSES ixgl9l07wAjh/GKUmHukhQ2kik1ATeLLl8NAYzk4RAT0JdpaNEBMZoEKiSn7lUAqhARsJXaf Pgm2jFPATmLbp1aw+cICfhKHXv8Ds1kEVCUerJzHCGLzAtUvPjyJHcIWlPgx+R4LiM0soCWx fudxJghbXmLzmrfMIKskBNQlHv3VBQmLCBhJbDu6lw2iRERi34t3jBCvXGKX+DhVBWKVgMS3 yY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1TpQSCA9sSQ1OzW1ILUIZgsTB6dUA2PZs4UysUtv Tl2y0aAij11BvOut0q5zN9L6lL9FWbHKqv5ZMt2/1XjLQa1JXy/b7RJ2zJqXlJjJvUyY9zS7 7KVft9ce9AvZxRHr3x4U/OXzw/3m3XveOYc8/GvHt0v46J+He1cISmdeDLnH9nn776a6uRk/ p5aEzPXMXFgnkqyvJOmfuuYes58SS3FGoqEWc1FxIgCn7KUfPAMAAA== 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/tps65217_bl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/video/backlight/tps65217_bl.c b/drivers/video/backlight/tps65217_bl.c index cbba37e..595dcf5 100644 --- a/drivers/video/backlight/tps65217_bl.c +++ b/drivers/video/backlight/tps65217_bl.c @@ -200,7 +200,6 @@ tps65217_bl_parse_dt(struct platform_device *pdev) pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); if (!pdata) { - dev_err(&pdev->dev, "failed to allocate platform data\n"); err = ERR_PTR(-ENOMEM); goto err; } @@ -296,10 +295,8 @@ static int tps65217_bl_probe(struct platform_device *pdev) tps65217_bl = devm_kzalloc(&pdev->dev, sizeof(*tps65217_bl), GFP_KERNEL); - if (tps65217_bl == NULL) { - dev_err(&pdev->dev, "allocation of struct tps65217_bl failed\n"); + if (tps65217_bl == NULL) return -ENOMEM; - } tps65217_bl->tps = tps; tps65217_bl->dev = &pdev->dev; -- 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/