From patchwork Thu Nov 24 01:24:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9444651 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 7DD12600BA for ; Thu, 24 Nov 2016 01:25:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5858027D9B for ; Thu, 24 Nov 2016 01:25:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CDF827DF9; Thu, 24 Nov 2016 01:25:00 +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 C1B0827D9B for ; Thu, 24 Nov 2016 01:24:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936494AbcKXBYt (ORCPT ); Wed, 23 Nov 2016 20:24:49 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34982 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935908AbcKXBYq (ORCPT ); Wed, 23 Nov 2016 20:24:46 -0500 Received: by mail-pg0-f67.google.com with SMTP id p66so2204713pga.2 for ; Wed, 23 Nov 2016 17:24:46 -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=hSVmmHSoXvKLfg33+926ZRNFOh6h7TsnOP8Dn9tr3t8=; b=c8zPuTlJror9mVy+GUmpcJJwMOaFkwPxR+E5AN6za5TfWJ4vk8w9aMc6YiWdckFIwr JExftxjK6ARcmNjcLTtd1+PJVx4jGkj+hz8lZwRToMEPyqMbEyMPDiqha5TbbYXYptaE sh9sSwP1I/0SqHbGlYOsy82rxEqPBvUqSIXdHSfktivml4ePGZ8Zm5clhQGhbeyJ/PwP m0K6qGr93VulYtyCUeKMt44aGEGc8nD8J9PuIcMfsZUZpvbITIodSraYS0mGNp9Dats5 Lrg+y3p8jidg4bKbF3fYKzuZSkNBbCwjXYszScNhC82r73wjs3RuQ7k8pz/SfDeB9+ha wh0A== 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=hSVmmHSoXvKLfg33+926ZRNFOh6h7TsnOP8Dn9tr3t8=; b=BZEnVUFBwZcOR69PLxQBYnQWangIQYGblRnVrzeJgXWF5LsrmFYpyob/gVn9/DkuuF M/EOVmr0kPhK45T87rUK5g/x1MRaw6djFMtSsBN3jjnbtP7AMHC7TcaQ27HGtJ/YiRJb n3ev3Lk9IBUNH/Miay5ifABAQn6kWZjNDu8AgMy1bDW1KhbxB7N+zHQ794BF0h/y4t/Y ZWbfY1Cx/NBz8nhKLuV9dSUofAtQ2MRjmlkoM2yIvXkBui9HuRA4u8C4yFE2kda47DCP 1EC18sJsY9Y4vnpQ6R4xFGYDr2xf+xesKZtEPxNttNbpbRzI4VLH/9z2ziD/pXneWypW V5kw== X-Gm-Message-State: AKaTC02nheWZr0AVWvvg0/JvyCNrxzzcy2h7m0JhJl+61jdIT+FwSQWMqmS38Kqa+kPGSg== X-Received: by 10.99.178.89 with SMTP id t25mr10029493pgo.131.1479950685762; Wed, 23 Nov 2016 17:24:45 -0800 (PST) Received: from google.com ([2620:0:1000:1301:7c:c779:de59:30f3]) by smtp.gmail.com with ESMTPSA id b80sm55374579pfe.52.2016.11.23.17.24.44 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Nov 2016 17:24:44 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Wed, 23 Nov 2016 17:24:40 -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 v2 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(-) diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c index eac44fe..e5c3a8a 100644 --- a/drivers/net/wireless/marvell/mwifiex/main.c +++ b/drivers/net/wireless/marvell/mwifiex/main.c @@ -518,7 +518,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; bool init_failed = false; @@ -576,8 +575,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,