From patchwork Fri Nov 18 08:46:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9435955 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 95EB66047D for ; Fri, 18 Nov 2016 08:46:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DEAB297E7 for ; Fri, 18 Nov 2016 08:46:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FFAC29818; Fri, 18 Nov 2016 08:46:35 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 3A944297E7 for ; Fri, 18 Nov 2016 08:46:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752499AbcKRIqc (ORCPT ); Fri, 18 Nov 2016 03:46:32 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33802 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752274AbcKRIqb (ORCPT ); Fri, 18 Nov 2016 03:46:31 -0500 Received: by mail-pg0-f65.google.com with SMTP id e9so19719164pgc.1 for ; Fri, 18 Nov 2016 00:46:31 -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=qOpkpBq7aRndw48/UfhwdVai0Svoyl3W1SD9Q8/oa3c=; b=zYu0Xg1+wnYAFFE/FbavESr+FLLY8rDpTv+vbbfpKM4SBPuD3YuN4SGyTG+dZK6zG8 rFQWyL6g69dUCRIme7yvhPppNiWBoShhHrLmTMRYxBf1LJUdpEAdaJ+kVDc7M6fp+Bjg QuiY86zXeoayKcv3iLAetL6l/eMUIidcEpI3+XOvm+o0xBuI0OJOk4sbFLs6tLP33xum ZAElqobEpJRpZ7y5vEyh6MVAqUy1/ms6sJbKa3KNF6nmVDbUvR6VrAceSq92xnQRXKB9 PZdHBYb/SZbn+lTdHG+4b9TcwjJbjX2bGfC9jt/t2cCK0ThV0ByZzQLKVnD8+De53X+h HnnA== 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=qOpkpBq7aRndw48/UfhwdVai0Svoyl3W1SD9Q8/oa3c=; b=mgzhchMNNin0ddL057/xn1KAkTeySOIzoOQa6uj/16/UBRjB4vru2DwYGa9GSMSwxh Su1xZjkdTtoG+H11r1B8N53ZkUjwuGq73qsUp/pJ919M+QJkXi+QB5wlymhoIzu5IiV6 mzmXiR/KMc0Th3lM9zY6Lc1OCJDVVnerXNmdS7ZAM938rJbpRrIOq8zRkR4oSL9CPLTu SmXEGrja46OEZrKDJ1D+G36fSe08+uC3ZaujFHhVZBZRrpsYaRh5qTKqJQzBYTSMwZ1H ThDI8Uo7qTWh7jv0aeCTgk3QNrGE/5xvsyUuzDEHunoiRbeYMmy0nRdx12/cNw3g2JqQ f0mQ== X-Gm-Message-State: ABUngvfB1VdUefF6sauXed/RicfNV2/VO/8YhaSXA4IHuG/MIYyF9dsQRMU8brJDYUWGug== X-Received: by 10.98.163.199 with SMTP id q68mr10331239pfl.87.1479458790846; Fri, 18 Nov 2016 00:46:30 -0800 (PST) Received: from google.com ([2620:0:1000:1301:853b:c23c:5fbf:7fc7]) by smtp.gmail.com with ESMTPSA id c128sm15207411pfc.39.2016.11.18.00.46.29 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Nov 2016 00:46:30 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Fri, 18 Nov 2016 00:46:25 -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 7/7] mwifiex: Remove unused 'bcd_usb' 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 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(-) -- 2.8.0.rc3.226.g39d4020 diff --git a/drivers/net/wireless/marvell/mwifiex/usb.c b/drivers/net/wireless/marvell/mwifiex/usb.c index 73eb084..67a15c1 100644 --- a/drivers/net/wireless/marvell/mwifiex/usb.c +++ b/drivers/net/wireless/marvell/mwifiex/usb.c @@ -380,7 +380,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 = kzalloc(sizeof(struct usb_card_rec), GFP_KERNEL); if (!card) @@ -389,7 +389,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);