Received: by 10.192.165.148 with SMTP id m20csp2708350imm; Sun, 6 May 2018 22:54:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrvtBP8mH6TTtFOOmV0CVX2KotdL/apwfo9WvQPKZtmBIpyRst1G3HyPtC4w/0UHXPaaS1J X-Received: by 2002:a17:902:6bca:: with SMTP id m10-v6mr36819698plt.6.1525672475022; Sun, 06 May 2018 22:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525672474; cv=none; d=google.com; s=arc-20160816; b=QxGYKG4BjER8XZx65G1m5bJQPnkYmXRxJ7LesORynNLDnl8rM7v2yxWetLDDokEOPn JvtFiRLCdjN0LD86kbTFFcgPOy/7xGKg0LxBwWqJT27Hd1MggPsMzL1QyQ0ypr1+LcVf ZF3Vl/MC5Nypfk24exEX1toyuwNY9j8JoB+BeU//xu5M5YoiGx5tX6qkOcGx7EsP7VIB S96tHuSdGVfgKV2PDiKCak/5KPuLN6XqzeJNcg6TvPKI7VFh2M0X9lkSbqUG702kgz/k Mm5OAfT7E6ojvMGlpdMGo7epaS1V4823hGIF7XnVV9+vBxVWbKH4YXDAkapHvKRdbBVt Dyug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=ozPxhwPnlJufHucrBYuyW8GdDZTIWURtj8gz2vjU46k=; b=JZoXyn/Gu6NGf3Ue1d43VmlT4isDyRHjohftKr3bT9DKkAFz/qObP1xOqWpiwrxe/K wtm9A8coEd+Rv7D5rBLBAqesM9erygbszYflnfao3qO6vVLizcbzDm84hTJ/g+S6GLFg HhwsQIMOPpbugluqK+HNr/N71lvDqBrFwt/MaYbVEo9A4rWOwKPeq7JP7mM5YUGHxf1C nhEb1mreq58bkUr6ZMBU8HcE1ISXYWgNBoaAUXln7x4KiRBouapqxWk8rV0jzwrE/xEj MvgBQU/iPrIsgtpQDGHPk4cAjO3YOHVD6DATQobGrcqIcYwY28a15uXwVuVGcPu0aOt9 hygg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h62si21467601pfg.308.2018.05.06.22.54.20; Sun, 06 May 2018 22:54:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751818AbeEGFyJ (ORCPT + 99 others); Mon, 7 May 2018 01:54:09 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:45957 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbeEGFyG (ORCPT ); Mon, 7 May 2018 01:54:06 -0400 X-IronPort-AV: E=Sophos;i="5.49,372,1520924400"; d="scan'208";a="14570233" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 06 May 2018 22:54:06 -0700 Received: from ajaysk-VirtualBox (10.10.76.4) by chn-sv-exch07.mchp-main.com (10.10.76.108) with Microsoft SMTP Server id 14.3.352.0; Sun, 6 May 2018 22:54:04 -0700 Date: Mon, 7 May 2018 11:23:59 +0530 From: Ajay Singh To: Nathan Chancellor CC: , Greg Kroah-Hartman , Aditya Shankar , Ganesh Krishna , , Subject: Re: [PATCH 1/3] staging: wilc1000: Remove unused variables Message-ID: <20180507112359.2107677c@ajaysk-VirtualBox> In-Reply-To: <20180506073333.3770-1-natechancellor@gmail.com> References: <20180506073333.3770-1-natechancellor@gmail.com> Organization: Microchip Technology X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you for the patch series. On Sun, 6 May 2018 00:33:31 -0700 Nathan Chancellor wrote: > GCC warns these variables are all set but never used so remove them. > > Signed-off-by: Nathan Chancellor Reviewed-by: Ajay Singh > --- > drivers/staging/wilc1000/host_interface.c | 12 ------------ > drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 ------ > 2 files changed, 18 deletions(-) > > diff --git a/drivers/staging/wilc1000/host_interface.c > b/drivers/staging/wilc1000/host_interface.c index > 28edd904b33a..3fd4c8e62da6 100644 --- > a/drivers/staging/wilc1000/host_interface.c +++ > b/drivers/staging/wilc1000/host_interface.c @@ -1432,13 +1432,7 @@ > static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif, { > s32 result = 0; > u8 msg_type = 0; > - u8 msg_id = 0; > - u16 msg_len = 0; > - u16 wid_id = (u16)WID_NIL; > - u8 wid_len = 0; > u8 mac_status; > - u8 mac_status_reason_code; > - u8 mac_status_additional_info; > struct host_if_drv *hif_drv = vif->hif_drv; > > if (!rcvd_info->buffer) { > @@ -1472,13 +1466,7 @@ static s32 handle_rcvd_gnrl_async_info(struct > wilc_vif *vif, return -EFAULT; > } > > - msg_id = rcvd_info->buffer[1]; > - msg_len = MAKE_WORD16(rcvd_info->buffer[2], > rcvd_info->buffer[3]); > - wid_id = MAKE_WORD16(rcvd_info->buffer[4], > rcvd_info->buffer[5]); > - wid_len = rcvd_info->buffer[6]; > mac_status = rcvd_info->buffer[7]; > - mac_status_reason_code = rcvd_info->buffer[8]; > - mac_status_additional_info = rcvd_info->buffer[9]; > if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) > { host_int_parse_assoc_resp_info(vif, mac_status); > } else if ((mac_status == MAC_STATUS_DISCONNECTED) && > diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c > b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index > 8be3c4c57579..76b4afaef423 100644 --- > a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ > b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -917,12 > +917,10 @@ static int add_key(struct wiphy *wiphy, struct net_device > *netdev, u8 key_index, const u8 *tx_mic = NULL; u8 mode = NO_ENCRYPT; > u8 op_mode; > - struct wilc *wl; > struct wilc_vif *vif; > > priv = wiphy_priv(wiphy); > vif = netdev_priv(netdev); > - wl = vif->wilc; > > switch (params->cipher) { > case WLAN_CIPHER_SUITE_WEP40: > @@ -1885,12 +1883,10 @@ static int start_ap(struct wiphy *wiphy, > struct net_device *dev, struct cfg80211_ap_settings *settings) > { > struct cfg80211_beacon_data *beacon = &settings->beacon; > - struct wilc_priv *priv; > s32 ret = 0; > struct wilc *wl; > struct wilc_vif *vif; > > - priv = wiphy_priv(wiphy); > vif = netdev_priv(dev); > wl = vif->wilc; > > @@ -2016,14 +2012,12 @@ static int change_station(struct wiphy > *wiphy, struct net_device *dev, const u8 *mac, struct > station_parameters *params) { > s32 ret = 0; > - struct wilc_priv *priv; > struct add_sta_param sta_params = { {0} }; > struct wilc_vif *vif; > > if (!wiphy) > return -EFAULT; > > - priv = wiphy_priv(wiphy); > vif = netdev_priv(dev); > > if (vif->iftype == AP_MODE || vif->iftype == GO_MODE) {