mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 01:25:39 +01:00
staging: r8188eu: remove unneeded initializations
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>
This commit is contained in:
parent
1b0be68c1c
commit
c0d84701e6
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user