mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 07:04:00 +08:00
staging: rtl8188eu: remove unnecessary initializations
The local variables backup_index, backup_counter and backup_time in rtw_reset_securitypriv() are all asigned before their uses, so initialization to zero is not necessary. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
48a254d7ff
commit
b543e1fdd1
@ -36,9 +36,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