From patchwork Sat Dec 23 19:55:15 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: 10131661 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 E494D6019C for ; Sat, 23 Dec 2017 19:55:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCF4328575 for ; Sat, 23 Dec 2017 19:55:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C16612871D; Sat, 23 Dec 2017 19:55:51 +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 5E99928575 for ; Sat, 23 Dec 2017 19:55:51 +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=ywIHml/RUwM0+tm9pb/t7QDqa+Yk1awSAhxTZP7wuhg=; b=UJD62cF2GBfSOu MC2mzTCdU8B+tf5nGM/c3PraDnis+j2xpPskMLcZdWUog44V1VPVMdI4T4oPkGVfgc0wvv4Lk9eUS HihRCaM/wylFZVMTG07z69zBQPIP3yizmrrlz2eqIIP1rG/LZKfpwPvaOhcHdQbJjBneTbnEO6XLW IE8R9sZLsz14xG+br27wkhs7FSaxNTUYGoXRj5ldlhp29ZnYtaSq7iK1OdMkOqBUi+JTar2uyBATo 3ggyb3wUSY/rEUmMrgPIOOvZXFJY0onocqFCVeHcS5bFWE9fOhVsdmjzX8WL30ScXmwsilRfHCSgT 0DVfWsK2ILi4qonxMjuA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eSptc-00016m-HT; Sat, 23 Dec 2017 19:55:48 +0000 Received: from mout.web.de ([217.72.192.78]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eSptY-00014E-VL for linux-arm-kernel@lists.infradead.org; Sat, 23 Dec 2017 19:55:47 +0000 Received: from [192.168.1.3] ([85.183.222.157]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MSJGB-1eZCt21Ax1-00TQSU; Sat, 23 Dec 2017 20:55:19 +0100 To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Belloni , Jean-Christophe Plagniol-Villard , Linus Walleij , Nicolas Ferre From: SF Markus Elfring Subject: [PATCH] pinctrl: at91: Delete an error message for a failed memory allocation in at91_pinctrl_mux_mask() Message-ID: Date: Sat, 23 Dec 2017 20:55:15 +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:NZT9fOYRxdcrOjCWdsnxXSxvnw0pA3CXOhsgLdswo3RJDwLgBOG mq7qbma7wXB/Wch+WeqEPHXkqTHWLQb8g26w/QVQjOUPvWUhQPbfJFTuFAlwTVY18Mx1Jq5 nCAA2uKL+QsK3PRFXp3K8/Rq+CiIPJKUU/oAAX/em0MWGbppXO6db0i+hkzx9nraH2GJTnQ SETEFphG16M9RbsXXXpEQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:a66yiWDY2tU=:bDBkd9BRL90ZMPFUK3giMw Puh3qV+qmlyHKK2ch/Om6WUYaCmoTBcnUaDVZqJyEX7InUTZbt2TdPTNyV02aISYjglM6F0al dx27mInH74x5+094md2ZYRb1kl7vEaFmqdP9ukPBhq1pz0ybFt0PcDyqD14attBNl5LG2jGey Iqjqc0ugQo3W0zgJahrE5nP7jAkT00LMBrIP/5E5WwEHT+VHbK45kTnxdvFvuX/XfHU2Xcl9E qcprH1pPZJmokMS7pzONMRVQMJkL7GG/sRmVaQXQHIQWwOCmLkq2OQ8mJjXMefWWrNSJnJn34 AiMfxCJPnrsfg0LLzPmW8XqvCzDpKRaDkZk4966Pv2yJAQEfqZjWLr5LU6flBgBFHUSyDQcTk paYVutE3kg4c23TiWa4gYsBzmU8FkNvlQMwDGUrUBHYlEQ0+jX7TXlvx6zzbJAhpenH08DggD 7/X5XHz58qNDac5G6+xVKP6iXXFqT+ZOWQr0gT48FthPIY86G34XTvF3Igl2CADZjjubk9KAi 9BVjbrNDCwg5EqZ7PBS4BMxhij0/CPAJFJ6kFrPpvQx0ppeDZV24jfQT1/OUj75mvOyKyGKi8 MEmZ6y5JmiolIUsTSX3VbD6Krzt9I0gJz0FlErfEUX6S4XTm0mkuqrt2nRliAa6NxNwdiaNg0 LhsNsVkw8ZRadwlx4Vqr9KpMbjVMCtxuOmcpLaFR5EI6Ha3wMRs8OGoBJ2UXJH9+pJwecCzzO INEfMqrpdW8bcsGy9goir7Nh2dCpqc+Jkhz3L4MYngspikb/dgzb97if6FoEveSf9PdlUqYTV 0KVMKV5DUVOSxP7oucm+/0x5i2PHvvSyLdTei3T7L3VOsOw7k0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171223_115545_415889_3CA072EB X-CRM114-Status: UNSURE ( 8.26 ) 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: Sat, 23 Dec 2017 20:44:27 +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/pinctrl/pinctrl-at91.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 03492e3c09fa..297f1d161211 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -1050,10 +1050,8 @@ static int at91_pinctrl_mux_mask(struct at91_pinctrl *info, info->nmux = size / gpio_banks; info->mux_mask = devm_kzalloc(info->dev, sizeof(u32) * size, GFP_KERNEL); - if (!info->mux_mask) { - dev_err(info->dev, "could not alloc mux_mask\n"); + if (!info->mux_mask) return -ENOMEM; - } ret = of_property_read_u32_array(np, "atmel,mux-mask", info->mux_mask, size);