From patchwork Thu Nov 24 01:27:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9444663 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 A71F3600BA for ; Thu, 24 Nov 2016 01:27:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91173275A2 for ; Thu, 24 Nov 2016 01:27:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8234C27DCD; Thu, 24 Nov 2016 01:27:19 +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 1559C275A2 for ; Thu, 24 Nov 2016 01:27:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936356AbcKXB1R (ORCPT ); Wed, 23 Nov 2016 20:27:17 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36624 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935508AbcKXB1Q (ORCPT ); Wed, 23 Nov 2016 20:27:16 -0500 Received: by mail-pg0-f68.google.com with SMTP id x23so2204281pgx.3 for ; Wed, 23 Nov 2016 17:27:16 -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=WDWIcEGSM3Dp+KZ2QQIDLUlyKeLVTNFngieaRwx9P50=; b=LOVRSz+do+lxJ4NARlPRWVKai6XiTnOAxbb9ta2qIwbjeP4ipQDPJ6zVisFj/WGe4h j9TGIH6QvyuOWYTZoYjwxKqrYvVnETRtfznwmqmHdWzzzVH1Xw55ogcY5MKW6GWzA4eP ulsEWbKGLy3JOaaPEM/XWPOfF3yWCsoBefvs8Jy7dBJ/pvON96xoRbdoEvWd1epiA1Sb fdbAW3Jw77XyFvbWD53cFZvwVh3P0/eClD9wX4zovIwdzssX7zgY4LUCY8/2LvoLesWP +47ATxRLc89tyS7qOsoZcBjyMk0u26mBg1Y5vEuTqi9kdfgbcqAWpy3VfULfsPQRPwTN d1rA== 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=WDWIcEGSM3Dp+KZ2QQIDLUlyKeLVTNFngieaRwx9P50=; b=GMOndlMbVTmBrLUjA4ZtUeBfWmPR7t7NmPYGbK/7iM+EIwU3O3mZYrX3FFB7HGbuLM HkpxyarZG0r/osKsIR+2NGFZ4COlNaS5XWQrx+zMOoz6cz6Yj1U1+nIdalJh//eRnUq6 XbaJ6KW1zDXrtGl1KLcxCYmqNdnrXhNY+2jt0iFs6AvMb/UHMIt4FT8ograXzDMfoY/W +0LcTU1H9COJKtN7mjY2hAazTSMKxZd7HvivctcGSA8iOj1Yk45xJTAQnQZH+1jOQK7P 6R1tdqA6R9vM54OIATvi6gqtv2b5HP23hlHQpsU6r8VPmMwCXcwwQBbMJOHh5gzJbu50 DoXA== X-Gm-Message-State: AKaTC02ogImQytpO9ZnwZyEgDqxTm7UWfZfMabfFywRbM7eh63/urGgoi8F6/QfwV9SJgQ== X-Received: by 10.84.209.140 with SMTP id y12mr12624860plh.74.1479950835825; Wed, 23 Nov 2016 17:27:15 -0800 (PST) Received: from google.com ([2620:0:1000:1301:7c:c779:de59:30f3]) by smtp.gmail.com with ESMTPSA id t25sm12362391pgo.9.2016.11.23.17.27.14 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Nov 2016 17:27:15 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Wed, 23 Nov 2016 17:27:10 -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 7/7] mwifiex: Remove unused 'bcd_usb' variable Message-ID: <966b21f38a4a9f4c5538ff614cb733f88221184e.1479950323.git.kirtika@google.com> 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 mwifiex_usb_probe() defines and sets bcd_usb but does not use it, Compiling with W=1 gives the following warning, fix it. mwifiex/usb.c: In function ‘mwifiex_usb_probe’: mwifiex/usb.c:383:41: warning: variable ‘bcd_usb’ set but not used [-Wunused-but-set-variable] The unused variable seems to be present since 4daffe354366 which introduced mwifiex_usb_probe(). Fixes: 4daffe354366 ("mwifiex: add support for Marvell USB8797 chipset") Cc: Amitkumar Karwar Signed-off-by: Kirtika Ruchandani --- drivers/net/wireless/marvell/mwifiex/usb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/usb.c b/drivers/net/wireless/marvell/mwifiex/usb.c index c3f696a..c563160 100644 --- a/drivers/net/wireless/marvell/mwifiex/usb.c +++ b/drivers/net/wireless/marvell/mwifiex/usb.c @@ -379,7 +379,7 @@ static int mwifiex_usb_probe(struct usb_interface *intf, struct usb_endpoint_descriptor *epd; int ret, i; struct usb_card_rec *card; - u16 id_vendor, id_product, bcd_device, bcd_usb; + u16 id_vendor, id_product, bcd_device; card = devm_kzalloc(&intf->dev, sizeof(*card), GFP_KERNEL); if (!card) @@ -390,7 +390,6 @@ static int mwifiex_usb_probe(struct usb_interface *intf, id_vendor = le16_to_cpu(udev->descriptor.idVendor); id_product = le16_to_cpu(udev->descriptor.idProduct); bcd_device = le16_to_cpu(udev->descriptor.bcdDevice); - bcd_usb = le16_to_cpu(udev->descriptor.bcdUSB); pr_debug("info: VID/PID = %X/%X, Boot2 version = %X\n", id_vendor, id_product, bcd_device);