Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6348221ybi; Wed, 31 Jul 2019 12:43:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkwwTgp9nXmYRe+tX/8n10E0/N04QheKa9qCq3RAbEkX8gL+5LuRz1sgpKWvtXyEUYurJv X-Received: by 2002:a63:cb4b:: with SMTP id m11mr41599155pgi.49.1564602239270; Wed, 31 Jul 2019 12:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564602239; cv=none; d=google.com; s=arc-20160816; b=B2fpCayhRYzRKQwSUb47TlSX8CS+E2q/pRnt+tzaHGzQYrky/6AU7vHoSyNpFNplmH B0hbPkG7ZfTepNgjuPhC/58xklsKl52RHXtq2J+b8mzmy26eiJ+KjI6xu05Yy5loD7e/ K04Vb2AlllcrsCzR3U5r99Gm2hwWf80Td9ezkNiuOJ7u54StPPWRFhB1RrDjGbvKT08V aoB/I3Q7N50hwGamqeLzBiZ+6FUUUcI+SXMVZppGQ8QZ8/5lnslF17fRXK0UG+WqPcNG Sfbj0xtFLkKyc0R5UoerRmkZL+ITvNr0d/xugVulfvFsIp+yeHftdk/iFbS5wSlh3SD0 2LLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=LMprJ1umUnvu1dTPiCF12+IEy2mbH3QvbE/6RTXXxRo=; b=GILzMALVPZmlI6VETeA02s9JOlJkV+Db2rRhWCYmEb1J8gW4pFBq/5Q8f5NgNFobg9 daMwmBs9G4+qE3K6PVoR/xR3QoKDygQmOxvFC5h+0xBFjmtI5LEFltVpNUkynXD0n7x0 XKynYFb2QI0G9WYjEL9Z8372IuBI+N5UnwsCfhdy9UDRtJW3KMHcA86kCcVGa/XgHfBW jMd+xF+3FFwpgLEgQcJBkqOXO5ZlX6tZYmwYzfrUh9VeeKKP/vGRBVB3ZLucKA1+89tb dp2a1TZn3OxYzfcKNp7u8Vo6xyDGMYg9L5XHxLm7q0vloy/I1n6tkwPylRM/lKS6C8zQ w5sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tyb32Or3; 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 n2si33983806pgd.247.2019.07.31.12.43.43; Wed, 31 Jul 2019 12:43:59 -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=tyb32Or3; 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 S1729622AbfGaSYH (ORCPT + 99 others); Wed, 31 Jul 2019 14:24:07 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35983 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726469AbfGaSYH (ORCPT ); Wed, 31 Jul 2019 14:24:07 -0400 Received: by mail-pg1-f195.google.com with SMTP id l21so32458216pgm.3 for ; Wed, 31 Jul 2019 11:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=LMprJ1umUnvu1dTPiCF12+IEy2mbH3QvbE/6RTXXxRo=; b=tyb32Or3VmREdlP9nkj0OyFFjS3LBsRt3zMvjFavg+65HKxCSVSUX11NDfj9UdNawF uJucIx3kBcwVjXfBMquMuh8KX5sGLWuiSzbLb4LalwNSazcPBIToTHKC9kmYw77n3+k2 vQHaOL33IeMXPDSdi8d3uAzbbpb1ubyu+ea665xYHd790jDaIlfNkU5K7YAZWVSHojyw ikHYozd4OIUoxJX5ACxmRhI9b+XLvilnCY0eH8wE6Jg7wp/oyEmyRSWtAimSgViMTsKx hqGGSP4wiz/fWHacE6h5txA+aBGJjcu79nfWS2ywvAaU1uUhfGornX4HPZhvPVkGuuY+ RCqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=LMprJ1umUnvu1dTPiCF12+IEy2mbH3QvbE/6RTXXxRo=; b=Zej93PmDC0L0Jfn05XzedxYHSlPVlnDagT+eqGguQvwMEHoVYjmONFCfqCJurIWH7a NJpv1CNqL8zPy7tYZEZfqOKS8LcEq41s1B1A+KObJU2BRPb6t2hZqofjloRL2gd/3ai5 zIWyYgCI7A1b2BfiPtRaunAE0jad2jRi1R0yjNRnz8kyhKCpHWX1FwSraalgKPssYwWD 4w7UNuSi9Ct3oOcbdJRCuvZdD4L+wCBRZxwXK4wRN9m6lCokASGHXgl1Ivl3mIYNt3uL 6aGi/o3jybUr45rNi+wPLgRFkirJuZsIxXRZObb7Y6EcBkqwbPeasBwvOobc1cYAALpR 5mHw== X-Gm-Message-State: APjAAAUkLguSSpWVhU6jtOx1Ggx463mllMCeRO5NYrOOYVnyGYDmu+7l P7Ig2tusYQMgKj/8RndUkcU= X-Received: by 2002:a62:7990:: with SMTP id u138mr46840329pfc.191.1564597446519; Wed, 31 Jul 2019 11:24:06 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id u23sm71863700pfn.140.2019.07.31.11.24.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jul 2019 11:24:06 -0700 (PDT) Date: Wed, 31 Jul 2019 23:54:00 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hans de Goede , Colin Ian King , Hariprasad Kelam , Arnd Bergmann , Jeeeun Evans , Nishka Dasgupta , Aditya Pakki , Hardik Singh Rathore , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Larry.Finger@lwfinger.net Subject: [Patch v2 09/10] staging: rtl8723bs: core: Remove unneeded variables sgi_20m,sgi_40m and sgi_80m Message-ID: <20190731182400.GA9792@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org htpriv.sgi_* variables are of type u8 ,instead of storing them in local variables ,its better to read value directly from structure. Signed-off-by: Hariprasad Kelam --- v2 - Add patch number drivers/staging/rtl8723bs/core/rtw_xmit.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c index b5dcb78..0690d5e 100644 --- a/drivers/staging/rtl8723bs/core/rtw_xmit.c +++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c @@ -346,21 +346,18 @@ void _rtw_free_xmit_priv(struct xmit_priv *pxmitpriv) u8 query_ra_short_GI(struct sta_info *psta) { - u8 sgi = false, sgi_20m = false, sgi_40m = false, sgi_80m = false; - - sgi_20m = psta->htpriv.sgi_20m; - sgi_40m = psta->htpriv.sgi_40m; + u8 sgi = false; switch (psta->bw_mode) { case CHANNEL_WIDTH_80: - sgi = sgi_80m; + sgi = false; break; case CHANNEL_WIDTH_40: - sgi = sgi_40m; + sgi = psta->htpriv.sgi_40m; break; case CHANNEL_WIDTH_20: default: - sgi = sgi_20m; + sgi = psta->htpriv.sgi_20m; break; } -- 2.7.4