From patchwork Fri Nov 18 08:44:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9435943 X-Patchwork-Delegate: kvalo@adurom.com 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 19A366047D for ; Fri, 18 Nov 2016 08:44:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 127D8297CA for ; Fri, 18 Nov 2016 08:44:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 073F2297CD; Fri, 18 Nov 2016 08:44:15 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AB5C297CA for ; Fri, 18 Nov 2016 08:44:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752295AbcKRIoM (ORCPT ); Fri, 18 Nov 2016 03:44:12 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34231 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751689AbcKRIoL (ORCPT ); Fri, 18 Nov 2016 03:44:11 -0500 Received: by mail-pg0-f67.google.com with SMTP id e9so19713755pgc.1 for ; Fri, 18 Nov 2016 00:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=29NEtfkqwCAQhksVr+dAEEiGhH3dOmUFbEYY9ioTUh8=; b=WUgVS5HW4Bq6Eh1ShG6czD5VS5edp89cuKHGJXvqxcelLLWIM5PJLn1KPFbTkp7jjz s0wK2wJxSDSXskliryH9dnKERVJouHW52Fxru8giZOy2ww7aYsSLSvfjuyy7vkzbEwIv DoyEcVPgs12i0Mk40YtXlRYOjr1u2VmiFw4d0w17SFtPk02dPxYSc1nlS36E6X7Vk/o9 svuJu3dLuzfASuELouYsew26BQguMGrcx40WsiQzRMCIO/LwyPE38IpSuJLnaH4wJY07 MByxe7Rha4UyLoHVtU8FFT+iAZ1AK9Sm8ZUEob7fU6dX+k2h/otMmeQTfUfo98u0hrlQ AZqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=29NEtfkqwCAQhksVr+dAEEiGhH3dOmUFbEYY9ioTUh8=; b=e/Vd6JM1liDvgCtxLsN5R2UzhsjznVY/W41ECW86hSoZoccoChh/0oX78ZL4O6IZmg /JG95xkFSHs80RD8/VLr6K0vSw3mtcTnBusmIh4SiKnywIE1cTK8wvpV1gUgBeJ6S3ET UqEoQy10TFrMl1x4EZsNAi+bjC7iuZ1roeb866vTEmb3jiGYsrRSiRJ2PAiD98P7peqb 96mSZg3oRUaSG/es0Ypta8eHXtVzqbs3ePltpALzGZWPlCr3gfAge3XDfEmmuhREER7U rhUAW5I37BCJilgJ6iUOskbbRQ7CE7y/O7u+w7UdQ4RWUeA9rXLzm3GzzpLwRZ98pMsm KUmQ== X-Gm-Message-State: ABUngveEQneHe9MlSNkUmwduLgtSbSIXDw5P9EtwRBypvFirXHE6nPZsD8iHif6vGzuO0w== X-Received: by 10.99.117.71 with SMTP id f7mr16917441pgn.126.1479458650879; Fri, 18 Nov 2016 00:44:10 -0800 (PST) Received: from google.com ([2620:0:1000:1301:853b:c23c:5fbf:7fc7]) by smtp.gmail.com with ESMTPSA id q145sm15171873pfq.22.2016.11.18.00.44.08 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Nov 2016 00:44:10 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Fri, 18 Nov 2016 00:44:03 -0800 To: Amitkumar Karwar Cc: Arnd Bergmann , Kalle Valo , linux-wireless@vger.kernel.org, Nishant Sarmukadam , Zhaoyang Liu , Bing Zhao , Xinming Hu , Avinash Patil Subject: [PATCH 1/7] mwifiex: Removed unused mwifiex_private* 'priv' variable Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit bec568ff5107 removed the last remaining usage of struct mwifiex_private* priv in mwifiex_fw_dpc(), by removing the call to mwifiex_del_virtual_intf(). Compiling mwifiex/ with W=1 gives the following warning, fix it. mwifiex/main.c: In function ‘mwifiex_fw_dpc’: mwifiex/main.c:520:26: warning: variable ‘priv’ set but not used [-Wunused-but-set-variable] Fixes: bec568ff5107 ("mwifiex: failure path handling in mwifiex_add_virtual_intf()") Cc: Amitkumar Karwar Signed-off-by: Kirtika Ruchandani --- drivers/net/wireless/marvell/mwifiex/main.c | 3 --- 1 file changed, 3 deletions(-) -- 2.8.0.rc3.226.g39d4020 diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c index 2478ccd..fff96be 100644 --- a/drivers/net/wireless/marvell/mwifiex/main.c +++ b/drivers/net/wireless/marvell/mwifiex/main.c @@ -517,7 +517,6 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context) { int ret; char fmt[64]; - struct mwifiex_private *priv; struct mwifiex_adapter *adapter = context; struct mwifiex_fw_image fw; struct semaphore *sem = adapter->card_sem; @@ -575,8 +574,6 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context) goto err_init_fw; } - priv = adapter->priv[MWIFIEX_BSS_ROLE_STA]; - if (!adapter->wiphy) { if (mwifiex_register_cfg80211(adapter)) { mwifiex_dbg(adapter, ERROR,