From patchwork Fri Dec 15 18:00:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10115817 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5B09860231 for ; Fri, 15 Dec 2017 18:18:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53C7229FFA for ; Fri, 15 Dec 2017 18:18:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4876E2A0B8; Fri, 15 Dec 2017 18:18:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C3D9D29FFA for ; Fri, 15 Dec 2017 18:18:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=iHOTKv3J3aph0vCL55fIbmNGqY6lJ5CE3Qe4OFeWdjE=; b=VJ+oigJKnjAB2D ube9IUW/z4ez/rrcxXpAbwZ3SFFSBS6Qw1/048a6jIXVoR10j3TX2jUQdZw59y1APFAzf5vhTGyEj +tactcpsMHjCOioHOxdHW2w/UDxOgTI7oc+fjnt8lhzb5yhmldrft2SGVVJXeizvSYwT8T/qFxY0f M4Cgd9ThGQggGB11sdLmFQwH8W3CMC/jmf3ksLdP4jy7EKHxLIlnRxx/yBDK/p0LAjXeawsL9ochG 4KpLk5UxU7hkqKc+ZS8BDbCY570/g1pU1PoeTncZttXptpA9w35RwCLCZI4d6NsqartntlaYf30hD QW/S8f8vnk4txXe3BlzQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePuZ7-0005hX-T3; Fri, 15 Dec 2017 18:18:33 +0000 Received: from mout.web.de ([212.227.15.14]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePuZ0-0005Yu-Le for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 18:18:31 +0000 Received: from [192.168.1.3] ([77.181.82.75]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lh90R-1eloeO2KhD-00oVt3; Fri, 15 Dec 2017 19:00:47 +0100 To: linux-pwm@vger.kernel.org, "linux-arm-kernel@lists.infradead.org" , Alexandre Belloni , Nicolas Ferre , Thierry Reding From: SF Markus Elfring Subject: [PATCH] pwm: atmel-tcb: Delete an error message for a failed memory allocation in atmel_tcb_pwm_probe() Message-ID: <8274c498-1d1b-2ece-365c-98ded714a53c@users.sourceforge.net> Date: Fri, 15 Dec 2017 19:00:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:uPa7MRudk4N7wM2fXp85+Bwnbo3xSKuNdZvpFu2RJbrJoTSOsQH 6YQgdWz9CTugfu6jm8I7oWbIA/wc6e87EdMFUS7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( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171215_101827_052027_C4155E5F X-CRM114-Status: UNSURE ( 8.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, LKML Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Fri, 15 Dec 2017 18:55:11 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/pwm/pwm-atmel-tcb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm-atmel-tcb.c index acd3ce8ecf3f..4fb1be246c44 100644 --- a/drivers/pwm/pwm-atmel-tcb.c +++ b/drivers/pwm/pwm-atmel-tcb.c @@ -401,7 +401,6 @@ static int atmel_tcb_pwm_probe(struct platform_device *pdev) tcbpwm = devm_kzalloc(&pdev->dev, sizeof(*tcbpwm), GFP_KERNEL); if (tcbpwm == NULL) { err = -ENOMEM; - dev_err(&pdev->dev, "failed to allocate memory\n"); goto err_free_tc; }