Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp142483imm; Fri, 31 Aug 2018 20:43:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZv5PDx9ZYZgJBC9ccSMmNviiLgbkdxwuAy8gdhs0BlOIh3OjWmSqYoYltMEt3XtlYiMzwU X-Received: by 2002:a62:5d03:: with SMTP id r3-v6mr19052725pfb.150.1535773421386; Fri, 31 Aug 2018 20:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535773421; cv=none; d=google.com; s=arc-20160816; b=uC/SGL6qhSBUXE5yfaONSUpYOgTMlfGozz9VnhgxPjQaOe/tL+w72uBGDYLeGR5Svi y4ASH+kEAFh33zBETqKZrapq380kA48t/qepHGGOzYGwvlfWGbnCEetN3KqPGymAwFis a/cNpBK2uZ0x7cOMSNnE/mibslGlSHeBRJq5AhH3aTDAQmWsVyWS4yUc3atRmaaM+j3C 4kWtf0OZiiUH8VK7kENfGnnH/zv9om2lwfDDQUQSu3kCdkjy6bk5wn2IIHwelsTw6IuY l/3WdlAGViO9c9M+QbavIS6rWWDqH234xQdALmZ0CSI+6qWa+ZlLID2SxMdJgZUDjtSj RI5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=8wnEG1m0w1HiIwuoawvbRJ+U76DGKb8Fx/P2wXviQSw=; b=GVnzAfKR3Ma2OKbNgjyJc9bipqU3KTy2zRNJ/Mh4dPttw+N8wTTKnt9BZK8PRwqC/N Z8QwvZSu4YJxAwZ1kwod2AYoL6gzcpFJRo+Yf+B1DKzC14dagkoiz7PgxTglDYoNJpR4 3avCHPE1EMjOKWP1liCr/9YiGiZcpGoM4Rlj+6C5hgs/3zWSbppqemUVuUiVwXv7cSMm q7PW+fW8gUn6o3G7z5wX8dtZHeqLtAE47rPs/ZNdhSds80E4Ntp1U67F7dERHYkKwHPk 1FcLD2IY+RyIU6JWxSzJ1aYGSZdnxTxd8dr8Fkc0y48MG0Q457Z99Tjw5wWne0TO1slO mSMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RkQAPM2q; 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 u1-v6si11190987pgl.669.2018.08.31.20.43.12; Fri, 31 Aug 2018 20:43:41 -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=RkQAPM2q; 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 S1727325AbeIAHwd (ORCPT + 99 others); Sat, 1 Sep 2018 03:52:33 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:41114 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725923AbeIAHwd (ORCPT ); Sat, 1 Sep 2018 03:52:33 -0400 Received: by mail-ua1-f67.google.com with SMTP id h1-v6so9641678uao.8; Fri, 31 Aug 2018 20:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8wnEG1m0w1HiIwuoawvbRJ+U76DGKb8Fx/P2wXviQSw=; b=RkQAPM2qfgh/Um5A0gE+ZKfEPsNg6bZy8uQdKLIGIF/VklSOXHR4S+eQfmByPz8hFX PdHQW90Oy/pEWEGrzd06iISICdo7D98EvzMkdMN6aS6Cz1Gw9Sv4V+GVBMNxHwkt+Xvj dTzb/FHEnxaDK3NXbNyUkWyvKn2/+D0utrk51cugmoxf+hTZryEC1Bvpds0kgVsriDP8 WKisr/meKI/F1kIPfwsXmYKSiilOZoZgeBNSdUj/7U3iOiuQan3Ae9NF3Geq/gnT2Nap Jwos2bm2FsqrAtdCBmZmIqMPaw0t7yAA13RpNUugNXdhIglbDPECfWOSQMjHdOgrlHdw Z/DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8wnEG1m0w1HiIwuoawvbRJ+U76DGKb8Fx/P2wXviQSw=; b=cjU0ys0SdA3GHvgIKPJ/YwFzCQP6oEnDaroUQ9xYwyNyiHbX2EhxByvJD98aXCnpR7 yJdNnUAH/2rH/lftkv5tYT7/EzmNyRbzOfU4ERtMg5lM8EaDMHO4O184qVjbkm+SfIVM KDeKFusjeGAbgA+q+iIfuQtUCvJnh2l6/i++ZwvTs9r1XLuQANVLGeZZQ8u8C5g94OU/ 2CX3sbcAXR7ybsp0JuYCZkAtcH4qQf86ufV2OX46B9HKLbk50HUs+NA4oTF/kqvpLBxy 9rPge4m0zYX1gSiMbi6TYp8x428tOgLM5Q0xwAluXcWvCkgN2jIjbTpVKGuVWmLojksz VuCA== X-Gm-Message-State: APzg51A916FGwf3KZO2r10APTGd+RO+/KsT0LE+EvfXINKAitkANpT5o ec5GfViTSh4VgEc33dzmh/Pgd+AX9JfUNPzwPI4= X-Received: by 2002:a9f:3e87:: with SMTP id x7-v6mr11395922uai.53.1535773326077; Fri, 31 Aug 2018 20:42:06 -0700 (PDT) MIME-Version: 1.0 References: <20180831111325.16984-1-yuehaibing@huawei.com> In-Reply-To: <20180831111325.16984-1-yuehaibing@huawei.com> From: Siva Rebbagondla Date: Sat, 1 Sep 2018 09:11:53 +0530 Message-ID: Subject: Re: [PATCH v2] rsi: remove set but not used variable 'header_size' To: yuehaibing@huawei.com Cc: Kalle Valo , davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Amit karwar , pavani.muthyala@redpinesignals.com, keescook@chromium.org, Linux Wireless Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" Thanks, Siva Rebbagondla