Received: by 10.192.165.148 with SMTP id m20csp1847489imm; Sun, 6 May 2018 00:36:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqZUuKsdlnEdzaLaziv/hUT4oTR+gLE2VsLChOmw9n5SR/RtVypqJEdfocYye0dSUiQGoXE X-Received: by 2002:a17:902:a5c7:: with SMTP id t7-v6mr25829338plq.360.1525592184547; Sun, 06 May 2018 00:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525592184; cv=none; d=google.com; s=arc-20160816; b=BpCizb6yISkckBaqP1AkzC/VwvAT+S/jUD88ssdEi8TocH48uDGyrrl0/zIfsryTY6 n5iL8JNZ0mtLXdJSzoQNVraZdrR75KRQGrmgi3RRkNJKKlyGwYk36UKW7ozDt6IpREBW Fa8/mArlz5PohmaH3BYRPmzbTxRCR5gNenbcTKE/1tcJO8slrKOJKdFH10dOP94VVEcw W7w8LM6cZiJouhRH+X5omYuHLuSHiAptirs4tXdJAWHX++rgAt2bhERqXz3T9osx36d5 iRoYX/rWbwf2dHpYSKhG4wvFI4cRgpGzhKvGtd1+p79Cs3aSXrI+BRxUwSDte3lQGLIT 1nOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=999d58oNbdrqfNhs/IosSpPigmX16QhE0f437ISXpos=; b=zncIdHoPeC8DATklxExWsW0F028gNZsgqMDiLJOj5ThUETIoVHMqlEj4wwvvDUcY3X L+oAZjSPOx1cQ5AL7Ok4G26QwRnSIRwfTAmDl7b7R1wsiZq8N9jcNaY6XUZSWT8f98iD 6/n5tR3OJcXISXMTC/ofONMBy3xKy0DONAKRqxiwzUX1Bsu62PiWr0QXx+9RePXjivEo 9DGf+LmupmhPTtIU6FVR3AeNgVEwOA3NYOSPB6AdWRJLSj6x6BvdSsgY1LAJCi7Ynk7t s57qvyJyrr5tUdQl9IMnvxAtMOy9fUHm4JCcAzcGspJa3GzAKZz5PRCLpLSQD21m+XT3 J2tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QTEfR/EU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g67si20047385pfe.4.2018.05.06.00.36.10; Sun, 06 May 2018 00:36:24 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QTEfR/EU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751398AbeEFHde (ORCPT + 99 others); Sun, 6 May 2018 03:33:34 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:38281 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750885AbeEFHdb (ORCPT ); Sun, 6 May 2018 03:33:31 -0400 Received: by mail-wr0-f193.google.com with SMTP id 94-v6so23538784wrf.5; Sun, 06 May 2018 00:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=999d58oNbdrqfNhs/IosSpPigmX16QhE0f437ISXpos=; b=QTEfR/EUUIYKK+MJfpHcZ2luD5jrvR93PdLm9VokYzj07GDZtHtlOusNMHhpfwPhCb eXvd1+LMiFGrmWIU/huB/Ze8ifj/wUwo3OD7XiQr7a+FEBniVev3hOfW9WfpB+fDaP9I xZAdsqZUZ4XaR6ALozWIBepZ3rcVAVzfYsZoHp/FZJhl5ZiYZDI0AwUdeQKZN8u4Qy/T TYvn2LETxok+QACsuRywRoxf0SyfZuWXhk3RFCTfvDTMHjBTs7r1iPKFmvvKICRRt6xG MYGcEjrezqwqcwc1AfosfgWm/mRXveF62WphaTggtWKywzuFXYdsBRW9O1WNjdD/S5H8 WQeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=999d58oNbdrqfNhs/IosSpPigmX16QhE0f437ISXpos=; b=kRL008fAeLJidmj9EIeb++ZEvU7BQDxPzjWT4ACQK5Bnp9IiVy/Nf3TDkaiL3rQLiS D6hziuiD9csJWSnunwMOXPFAbp+7oCz6UXBnrcIWTqoXr2ckiFk515rAzGMe+09JO4VU aYWVhfsEKkviCQStWc4nY7WRwM1o87l6g/Ju2NmPBbJTnjFEJEkKhmQZGKjg2jV64FCw HxJzydVdvbaxI1oSytmFb4VDPbA9fap+RwAPBdrh1zUrBJnjGt3iszG1DtTH56mSALQN W2/02um3BA/KzQ8HC82EYzaMFmFcoNtLE+cswPUiumXUKJwyixBgBOLYYrT7zZBZ0BcH 6HTw== X-Gm-Message-State: ALQs6tDF4eMHgXPp6SNrSJ9MhrxCQjd/fRn6hiUj1gYV4JyI2gsFSXIq C+SjW9KmiV8QCEZfTn8nNzk= X-Received: by 2002:adf:b08e:: with SMTP id i14-v6mr27870861wra.9.1525592009928; Sun, 06 May 2018 00:33:29 -0700 (PDT) Received: from flashbox.your-server.de ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id u196-v6sm5180536wmf.30.2018.05.06.00.33.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 00:33:28 -0700 (PDT) From: Nathan Chancellor To: devel@driverdev.osuosl.org Cc: Greg Kroah-Hartman , Aditya Shankar , Ganesh Krishna , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH 1/3] staging: wilc1000: Remove unused variables Date: Sun, 6 May 2018 00:33:31 -0700 Message-Id: <20180506073333.3770-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GCC warns these variables are all set but never used so remove them. Signed-off-by: Nathan Chancellor --- 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) { -- 2.17.0