From patchwork Fri Jan 1 19:26:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 7939951 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C2DAC9F38D for ; Fri, 1 Jan 2016 19:27:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF53F20520 for ; Fri, 1 Jan 2016 19:27:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2418B20515 for ; Fri, 1 Jan 2016 19:27:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752186AbcAAT0m (ORCPT ); Fri, 1 Jan 2016 14:26:42 -0500 Received: from mout.web.de ([212.227.15.4]:50380 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752156AbcAAT0k (ORCPT ); Fri, 1 Jan 2016 14:26:40 -0500 Received: from [192.168.1.2] ([77.182.63.9]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0MSJH1-1ahNh104M7-00TSjh; Fri, 01 Jan 2016 20:26:28 +0100 Subject: [PATCH] net-brcmfmac: Delete an unnecessary variable initialisation in brcmf_sdio_download_firmware() References: <566ABCD9.1060404@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall To: brcm80211-dev-list@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Arend van Spriel , Brett Rudley , "Franky (Zhenhui) Lin" , Hante Meuleman , Kalle Valo From: SF Markus Elfring Message-ID: <5686D2E0.2010309@users.sourceforge.net> Date: Fri, 1 Jan 2016 20:26:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <566ABCD9.1060404@users.sourceforge.net> X-Provags-ID: V03:K0:I8qv48DU50KDuB+/pw3paxmx7HJGOIgB2n9+3X9tF5VhK/8fS+d Ufa73p1i1AdJT+PlyBSB+bMstebvxie7ZEu57bxMZ61Fy4RRgHql2hOk2yxjEg9BjaomEt6 WBTi63QEBLnqq4Sn0kLPlXL/1AQYaRLmbQKv4aCF7dnJ53Dj04gHqgO2Vf/cO2tL1Kw5jaS jTMS79ZKHbfWO0F3CaqBg== X-UI-Out-Filterresults: notjunk:1; V01:K0:rMe7LWTlf00=:b6f43pO/yEWDZTVhwaTqoR eo2cFhgRapEGTwWqzDwJ4QgmJ5CkHKr3GS6p0eKfubZP96SHMMcnSUL6cncEftlDQuQc0eX0C xKgtcIYiBj9LoPjbYw3jKgdIAMH75FDvAM7JYIMIsFSWb4+35QX/dSKNeNEogwWIF9nyHXE71 bdrtNl3jQl+dmnBE37E1Ukc/ejHF2zHWAMMxf5c+yFWy3GllMTNkpv1N2E2NaQTzMmXY7KzER e5m9zvTYp0SLbSfBHoibgSvrvs20ofcEhN7/EyPD25xgzCMnM2+3TjVeyge6p81boi0VXlUD/ 7bBLnk7qgBnixb+5NTYl9b3+Xltl7M5UmlJN/0Y5XwVYpPCfrw+Vv6LTVYPQG7dkHJbJFSPCU 5vwo43zOPjZe2AJxS2szK1RhJuk3Ht6iV5ToxphOaq2I13jZRz8Q7z4aIS7+YCrpDM9E9D++y SbYNkWNubauGvV6Ilnuk9cHBqRKzpbRxyQwwU0llUZrbM5TqQQjFBllsGO2xDYINPMZWvJMql NfJs9dYSvxEFekf7K7KAScXtu+sJkgbXha5k8igWiIYtUXzWyBGMii1x9JKwtDMBrCztsLPpq +BEZHpcU51fiYbuDhoO1Knboj8NTJ8sm6HLOq9pXTFT5rNT1WT4NC53uKQSrPaKwl8dTktWSw XF30fiF+FoL9V6CqC752C+Kuiw6W104jDr+xAU2Duzl3EPhbZ8aUm97Q5w0SEp6gng66bLVvz SdV75gP+/QEJSur4T/bdtBpS+M2lsLye5YWaWozGJXDIDuiA2XGGfjoKxh4sg8YVyEbRCl5DI 0xH8vSM Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Fri, 1 Jan 2016 20:20:15 +0100 Omit explicit initialisation at the beginning for one local variable that is redefined before its first use. Signed-off-by: Markus Elfring Acked-by: Arend van Spriel --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c index ceb2a75..c21eeb1 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c @@ -3260,7 +3260,7 @@ static int brcmf_sdio_download_firmware(struct brcmf_sdio *bus, const struct firmware *fw, void *nvram, u32 nvlen) { - int bcmerror = -EFAULT; + int bcmerror; u32 rstvec; sdio_claim_host(bus->sdiodev->func[1]);