[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190731182400.GA9792@hari-Inspiron-1545>
Date: Wed, 31 Jul 2019 23:54:00 +0530
From: Hariprasad Kelam <hariprasad.kelam@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Hans de Goede <hdegoede@...hat.com>,
Colin Ian King <colin.king@...onical.com>,
Hariprasad Kelam <hariprasad.kelam@...il.com>,
Arnd Bergmann <arnd@...db.de>,
Jeeeun Evans <jeeeunevans@...il.com>,
Nishka Dasgupta <nishkadg.linux@...il.com>,
Aditya Pakki <pakki001@....edu>,
Hardik Singh Rathore <hardiksingh.k@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Larry.Finger@...inger.net
Subject: [Patch v2 09/10] staging: rtl8723bs: core: Remove unneeded variables
sgi_20m,sgi_40m and sgi_80m
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 <hariprasad.kelam@...il.com>
---
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
Powered by blists - more mailing lists