From patchwork Wed Feb 26 01:14:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 324162 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id BBE3A2C0040 for ; Wed, 26 Feb 2014 12:14:21 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751332AbaBZBOU (ORCPT ); Tue, 25 Feb 2014 20:14:20 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:39637 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751326AbaBZBOT (ORCPT ); Tue, 25 Feb 2014 20:14:19 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1K00MNDWRV5IC0@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 26 Feb 2014 10:14:19 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id F7.C9.12635.BEF3D035; Wed, 26 Feb 2014 10:14:19 +0900 (KST) X-AuditID: cbfee68d-b7fcd6d00000315b-40-530d3feb290c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 81.18.28157.AEF3D035; Wed, 26 Feb 2014 10:14:19 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N1K004IXWRUFD60@mmp2.samsung.com>; Wed, 26 Feb 2014 10:14:18 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' , 'Sascha Hauer' , 'Tony Prisk' References: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> In-reply-to: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> Subject: [PATCH 9/9] pwm: vt8500: Remove unnecessary OOM messages Date: Wed, 26 Feb 2014 10:14:18 +0900 Message-id: <001c01cf3290$12c87440$38595cc0$%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 Content-language: ko Thread-index: Ac8yjgDAAe+vBVdBShKGb71bK5ER2QAAfASg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsVy+t8zQ93X9rzBBpMbWS0uL7zEanH37ipG i5bLK5gt/m7fxGLxc9c8FgdWj52z7rJ79P818Dj/v4Xdo2/LKkaPz5vkAlijuGxSUnMyy1KL 9O0SuDJOtx1lLZjIVnF/3TzWBsZW1i5GTg4JAROJrgVvmSFsMYkL99azdTFycQgJLGOUeLJh EhtM0cTtTWANQgLTGSV+b8iDKPrNKHHh0SKwBJuAmsSXL4fZQWwRAX2JS9cvsYIUMQtMYpS4 d2MzM0S3rcS9OxsYQWxOATuJRatWsHQxcnAICzhKPJxvCRJmEVCVWHD5IAuIzQtU/nXrTHYI W1Dix+R7YHFmAS2J9TuPM0HY8hKb14B8wAF0qLrEo7+6EGERiX0v3jFCnGMksfb9dLDHJATu sUt8+veTBWKXgMS3yYdYIHplJTYdgAaEpMTBFTdYJjBKzEKyeRaSzbOQbJ6FZN0CRpZVjKKp BckFxUnpRYZ6xYm5xaV56XrJ+bmbGCFx2ruD8fYB60OMyUDrJzJLiSbnA+M8ryTe0NjMyMLU xNTYyNzSjDRhJXHepIdJQUIC6YklqdmpqQWpRfFFpTmpxYcYmTg4pRoY5ZbePr5nS+PCBypJ n6e6FwrO1NytkLXx9W01wyUC3fu+7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+dOk1AlluKMREMt5qLiRAARaCBiRgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@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/pwm/pwm-vt8500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c index 323125a..652e6b5 100644 --- a/drivers/pwm/pwm-vt8500.c +++ b/drivers/pwm/pwm-vt8500.c @@ -211,10 +211,8 @@ static int vt8500_pwm_probe(struct platform_device *pdev) } chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); - if (chip == NULL) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (chip == NULL) return -ENOMEM; - } chip->chip.dev = &pdev->dev; chip->chip.ops = &vt8500_pwm_ops;