Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp215191imm; Fri, 31 Aug 2018 23:58:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY2CUkH+8vskyEdtE28K5iaATy0X9MMu0EDmQyHKrpyQjZsQd9XD2OgApc8nPjtQ5sSdYbh X-Received: by 2002:a17:902:e00b:: with SMTP id ca11-v6mr18446165plb.224.1535785095684; Fri, 31 Aug 2018 23:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535785095; cv=none; d=google.com; s=arc-20160816; b=GgsMFAtNmq7QNTAaYVzbdzcIEDJobWWjMBjMGTU+YKvu7SBxJkPgTvB9J0CpTJTdI2 ka0Dsypu2/28EQ8voNQTQsEGFrNdbl5Vf7ocawbEzGDvlun6Geh2KR2fpydAikNok5xM ReVGxnCjlgzc/0/7PaAcBmB26vdCD5Mxyw1KAGB/Zss7jePB+nsBPPBapj/RkKHghjwo mjxsrOAjokB9PXc9FCGBhPLlcFzDP+qLMUJKTQlJl/M6GVplf8qhyegwjzGMYO2afjcn njn9JX3yEyTqeKQCMereUl+h5Z2FHOk1/zZgWnpEyl7IUrkK7oBuoj0GcTaRmxBNi+bo gnTQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=puHPa9+uYdnm2qgup7BAqWzEHL7CSEof9BVhSD616yI=; b=s//KVPYxR191SfPlm03VtaaGuJqMd9AfUOwR7ft0GLBTeEYIkFBXnApBAwrteTl/5R U1fvy/lVVpHK1FycBoHo/8R+dJ47OisdOlTIKxBQ00Ad0dkucfLgvcbLMNO8a2GaaBl3 1VDPgAUZnuGrf+LM1rKjFLyk1XAuJJhp9agYYfSrKAHeBcZFuTIVJB9SbUEx8gfSuiEG RHy6XMAW0Z85W0SnuDEFScoAl/EoWYcyUqYTITJfUJPQLSRl38oaBhnXJhlrrx+l8F3I aD071aS8PiZJu9UBpAFvtZp7FEPozHPeCdI7SLlKyVv+DCGMdafAho/PGtzbIB+aJjg9 +esg== 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 f16-v6si12026501pgd.257.2018.08.31.23.57.32; Fri, 31 Aug 2018 23:58:15 -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 S1727357AbeIALFf (ORCPT + 99 others); Sat, 1 Sep 2018 07:05:35 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11215 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726044AbeIALFf (ORCPT ); Sat, 1 Sep 2018 07:05:35 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0EE9079EB8334; Sat, 1 Sep 2018 14:54:35 +0800 (CST) Received: from [127.0.0.1] (10.177.31.96) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.399.0; Sat, 1 Sep 2018 14:54:33 +0800 Subject: Re: [PATCH v2] rsi: remove set but not used variable 'header_size' To: Siva Rebbagondla References: <20180831111325.16984-1-yuehaibing@huawei.com> CC: Kalle Valo , , , , Amit karwar , , , Linux Wireless From: YueHaibing Message-ID: <6216c073-dadc-e593-dbb6-7c5b1cb7ee70@huawei.com> Date: Sat, 1 Sep 2018 14:54:31 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 On 2018/9/1 11:41, Siva Rebbagondla wrote: > On Fri, Aug 31, 2018 at 4:45 PM YueHaibing wrote: >> >> 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; > Yes, These redundant variables shall be removed. >> >> if (((vif->type == NL80211_IFTYPE_STATION) || >> (vif->type == NL80211_IFTYPE_P2P_CLIENT)) && >> -- >> 2.7.0 >> >> > Also, Patch title also can be changed to "[v2] rsi: remove unused variables" Ok, will fix in v3. Thank you. > > Thanks, > Siva Rebbagondla > > . >