From patchwork Wed Jun 18 05:50:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 361258 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 493BF140086 for ; Wed, 18 Jun 2014 15:50:12 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756598AbaFRFuL (ORCPT ); Wed, 18 Jun 2014 01:50:11 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:32090 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756586AbaFRFuK (ORCPT ); Wed, 18 Jun 2014 01:50:10 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7C009KPO7KCC20@mailout1.samsung.com> for linux-pwm@vger.kernel.org; Wed, 18 Jun 2014 14:50:08 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 68.77.14704.09821A35; Wed, 18 Jun 2014 14:50:08 +0900 (KST) X-AuditID: cbfee68f-b7fef6d000003970-7a-53a12890de2e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 87.64.08203.09821A35; Wed, 18 Jun 2014 14:50:08 +0900 (KST) Received: from DOJG1HAN03 ([12.36.165.116]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N7C00MDHO7KF230@mmp1.samsung.com>; Wed, 18 Jun 2014 14:50:08 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' , 'Philip Avinash' Subject: [PATCH] pwm: pwm-tipwmss: remove unnecessary OOM messages Date: Wed, 18 Jun 2014 14:50:08 +0900 Message-id: <000001cf8ab9$294b0940$7be11bc0$%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: Ac+KuSjwrehPdFsQSzerBtncb8urHg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsVy+t8zQ90JGguDDS6ekrd4dGc/k8XlhZdY Le7eXcVo8XPXPBYHFo+ds+6ye/RtWcXocfzGdiaPz5vkAliiuGxSUnMyy1KL9O0SuDL2/Z7L WvCbreJI83eWBsYHrF2MnBwSAiYSb57fZoawxSQu3FvP1sXIxSEksIxRYuPiJcwwRXO2HGOH SCxilHh09DsThPObUWLHowOMIFVsAmoSX74cZgexRQT0JS5dvwS2glkgR+LLozdsILawgJPE 4QvTmUBsFgFViUnvX7OA2LwCthJLXsxjhrAFJX5MvscC0aslsX7ncSYIW15i85q3QDUcQBep Szz6qwuxSk+ioaEfapWIxL4X7xhBbpMQ2MYuceXtamaIXQIS3yYfYoHolZXYdADqMUmJgytu sExgFJuFZPMsJJtnIdk8C8mKBYwsqxhFUwuSC4qT0ouM9YoTc4tL89L1kvNzNzFC4qx/B+Pd A9aHGJOB1k9klhJNzgfGaV5JvKGxmZGFqYmpsZG5pRlpwkrivPcfJgUJCaQnlqRmp6YWpBbF F5XmpBYfYmTi4JRqYOTaEM/lxqOU2TYnN+mI/cZlK6MC/nfPu/ps29wl3n6RvLtVS1WzpgS8 2H1Z93p6n173s/SOc7OyklT3zFv9Q/3O2fM25VMeHWLM+KPXuo2xU26KyL645JzUOwarf/SJ 2skWXm+LWqSWF3TPuNO6Y46NFv+MdwfSvmdtMHZ+4d3pLGLLJvlpqhJLcUaioRZzUXEiABZz /4HJAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsVy+t9jAd0JGguDDfqbZSwe3dnPZHF54SVW i7t3VzFa/Nw1j8WBxWPnrLvsHn1bVjF6HL+xncnj8ya5AJaoBkabjNTElNQihdS85PyUzLx0 WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKCdSgpliTmlQKGAxOJiJX07TBNCQ9x0 LWAaI3R9Q4LgeowM0EDCOsaMfb/nshb8Zqs40vydpYHxAWsXIyeHhICJxJwtx9ghbDGJC/fW s3UxcnEICSxilHh09DsThPObUWLHowOMIFVsAmoSX74cBusQEdCXuHT9EtgkZoEciS+P3rCB 2MICThKHL0xnArFZBFQlJr1/zQJi8wrYSix5MY8ZwhaU+DH5HgtEr5bE+p3HmSBseYnNa94C 1XAAXaQu8eivLsQqPYmGhn6oVSIS+168Y5zAKDALyaRZSCbNQjJpFpKWBYwsqxhFUwuSC4qT 0nMN9YoTc4tL89L1kvNzNzGCo/iZ1A7GlQ0WhxgFOBiVeHg5chcEC7EmlhVX5h5ilOBgVhLh fc+0MFiINyWxsiq1KD++qDQntfgQYzLQoxOZpUST84EJJq8k3tDYxMzI0sjMwsjE3Jw0YSVx 3gOt1oFCAumJJanZqakFqUUwW5g4OKUaGNNvWk50brh4dML5n399drAKrk+7XbT8yWdXiSzX vQ8e80aqWPWZP/aoviyV2j3j6MsjMrW36mzN5abcOxJ9eseZH7JT5xkfWDmL3fTxq4V64n2p 3n7dyvyLdIVv9c/8pvxkx55z555IH78gMutCYsXvwoVBkn679fRU9/01742as2hjweuPc2OV WIozEg21mIuKEwH3NrRRJgMAAA== 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. The following checkpatch warning is also removed. WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Jingoo Han --- drivers/pwm/pwm-tipwmss.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-tipwmss.c b/drivers/pwm/pwm-tipwmss.c index 3b119bc..67481dc 100644 --- a/drivers/pwm/pwm-tipwmss.c +++ b/drivers/pwm/pwm-tipwmss.c @@ -62,10 +62,8 @@ static int pwmss_probe(struct platform_device *pdev) struct device_node *node = pdev->dev.of_node; info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); - if (!info) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (!info) return -ENOMEM; - } mutex_init(&info->pwmss_lock);