* [PATCH] staging: rtl8188eu: core: Remove set but unused variable
@ 2021-07-01 15:46 Fabio M. De Francesco
2021-07-21 8:18 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Fabio M. De Francesco @ 2021-07-01 15:46 UTC (permalink / raw)
To: Larry Finger, Greg Kroah-Hartman, linux-staging, linux-kernel
Cc: Fabio M. De Francesco
Remove variable sec_idx because is set but unused. Issue detected by
GCC with -Wunused-variable.
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
---
drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/staging/rtl8188eu/core/rtw_ieee80211.c
index e431914db008..ce82b866c633 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ieee80211.c
@@ -465,7 +465,7 @@ int rtw_parse_wpa2_ie(u8 *rsn_ie, int rsn_ie_len, int *group_cipher, int *pairwi
void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len)
{
- u8 authmode, sec_idx;
+ u8 authmode;
u8 wpa_oui[4] = {0x0, 0x50, 0xf2, 0x01};
uint cnt;
@@ -473,8 +473,6 @@ void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie
cnt = _TIMESTAMP_ + _BEACON_ITERVAL_ + _CAPABILITY_;
- sec_idx = 0;
-
while (cnt < in_len) {
authmode = in_ie[cnt];
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: rtl8188eu: core: Remove set but unused variable
2021-07-01 15:46 [PATCH] staging: rtl8188eu: core: Remove set but unused variable Fabio M. De Francesco
@ 2021-07-21 8:18 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2021-07-21 8:18 UTC (permalink / raw)
To: Fabio M. De Francesco; +Cc: Larry Finger, linux-staging, linux-kernel
On Thu, Jul 01, 2021 at 05:46:47PM +0200, Fabio M. De Francesco wrote:
> Remove variable sec_idx because is set but unused. Issue detected by
> GCC with -Wunused-variable.
>
> Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
> ---
> drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Does not apply to my tree :(
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-21 8:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-01 15:46 [PATCH] staging: rtl8188eu: core: Remove set but unused variable Fabio M. De Francesco
2021-07-21 8:18 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox