Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp425860imm; Fri, 31 Aug 2018 04:17:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaVd/y7ywI8/kaJhJosqBw+z12sA9lna+BQ3lqpqQwKSuosslcAmEAot3+u2DUkwW/w3fSi X-Received: by 2002:a62:6781:: with SMTP id t1-v6mr15428390pfj.200.1535714246604; Fri, 31 Aug 2018 04:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535714246; cv=none; d=google.com; s=arc-20160816; b=NY9UevRHBBwld2Cf/iD4XmtQsKxvuEuibzh2GWVMGoy+VVWA669It7Nfwu8bxvBxKS 6EJu/kC6YklT/fENH3woWrcsiw4XN/4N6AIjzRwEw7egs3vX1zFTX4MXBkUub52dmDkB Uqqm9jSfl3Fjgh0t9q9ynkXSby4S06xrY2EskfTrxBYECqkKA6aXgbL7Dc049jhF9dfz 8WlUGLDF83xwkLlbUs/Ads7dHZJV4z8obbscSMfIUjJBMqV9MzUHsdX9B7NfcNAfJgLa JcbLpI+9M6OB7+Iq2ZrVDIOmqDjzHXUEA4jdpZFwTF6NO+KXrRqXpAOemy2JS2u4GKCx Fb7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=TD5ofmuVCkjNJsCINkdXR50mEqrdqML8eH7jyV4Oz9s=; b=jy6VWDLOG839blvcg6xpq6WFlk+mgp0E01sReUz/xLMaC4vdcy+xg5L4W0Fg4GUC26 Uuj2s5sFCoDjpRSj8eHWSdr1xABJKkWbGtVRMl7p30iS4DMcm94qo13eXbjzVaONkN4N xFabXJQoTRO7ufrGr+9TikQvcey1lkF6vJi4PuwRF6jxgG+A/Sy3iDM0Kl2c1dsKThob gCchq127BEEpem7fWhJLNbw4SL85JD1tXxvIk5zRt6aNa6ndz+7EraList/XHYivw/s6 7XQJsYkR43YmelXgQNOqQ9ATUMEglNRz7CfYGCmiWpMe8V/JtHM73/qxVVKAiEzuuY4u fGIQ== 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 y63-v6si9057086pgd.435.2018.08.31.04.17.11; Fri, 31 Aug 2018 04:17:26 -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 S1727994AbeHaPVV (ORCPT + 99 others); Fri, 31 Aug 2018 11:21:21 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11212 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726990AbeHaPVV (ORCPT ); Fri, 31 Aug 2018 11:21:21 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B5D6043DCE876; Fri, 31 Aug 2018 19:14:18 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.399.0; Fri, 31 Aug 2018 19:14:13 +0800 From: YueHaibing To: , CC: , , , , , , YueHaibing Subject: [PATCH v2] rsi: remove set but not used variable 'header_size' Date: Fri, 31 Aug 2018 19:13:25 +0800 Message-ID: <20180831111325.16984-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/rsi/rsi_91x_hal.c: In function 'rsi_send_data_pkt': drivers/net/wireless/rsi/rsi_91x_hal.c:288:5: warning: variable 'header_size' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing --- v2: remove unused 'tx_params' --- drivers/net/wireless/rsi/rsi_91x_hal.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/wireless/rsi/rsi_91x_hal.c b/drivers/net/wireless/rsi/rsi_91x_hal.c index 01edf96..182b066 100644 --- a/drivers/net/wireless/rsi/rsi_91x_hal.c +++ b/drivers/net/wireless/rsi/rsi_91x_hal.c @@ -282,10 +282,8 @@ int rsi_send_data_pkt(struct rsi_common *common, struct sk_buff *skb) struct rsi_hw *adapter = common->priv; struct ieee80211_vif *vif; struct ieee80211_tx_info *info; - struct skb_info *tx_params; struct ieee80211_bss_conf *bss; int status = -EINVAL; - u8 header_size; if (!skb) return 0; @@ -297,8 +295,6 @@ int rsi_send_data_pkt(struct rsi_common *common, struct sk_buff *skb) goto err; vif = info->control.vif; bss = &vif->bss_conf; - tx_params = (struct skb_info *)info->driver_data; - header_size = tx_params->internal_hdr_size; if (((vif->type == NL80211_IFTYPE_STATION) || (vif->type == NL80211_IFTYPE_P2P_CLIENT)) && -- 2.7.0