staging: r8188eu: remove unneeded initializations
authorMichael Straube <straube.linux@gmail.com>
Fri, 19 Aug 2022 12:54:23 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Aug 2022 13:40:26 +0000 (15:40 +0200)
In the function rtw_reset_securitypriv() three variables are
initialized to zero. That is not necessary because they are all
set before use in the code. Remove the initializations.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220819125428.8412-7-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/mlme_linux.c

index aff9e18476dbfb84fe3bf0e5964a74d19ca746a6..48287aeaf502b8bc669f26d3d97eb0a7c297282f 100644 (file)
@@ -57,9 +57,9 @@ static struct rt_pmkid_list backup_pmkid[NUM_PMKID_CACHE];
 
 void rtw_reset_securitypriv(struct adapter *adapter)
 {
-       u8      backup_index = 0;
-       u8      backup_counter = 0x00;
-       u32     backup_time = 0;
+       u8 backup_index;
+       u8 backup_counter;
+       u32 backup_time;
 
        if (adapter->securitypriv.dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) {
                /* 802.1x */