summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorMichael Straube <straube.linux@gmail.com>2019-01-28 10:51:33 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-30 15:40:58 +0100
commitb543e1fdd19bbc4b2cbecdcc33fbd6512d47acf5 (patch)
tree051f91bcf3183d05f590deb73837742ed6286cea /drivers/staging/rtl8188eu
parent48a254d7ff729c71c06d73eb3c1929536283bb41 (diff)
downloadlinux-stable-b543e1fdd19bbc4b2cbecdcc33fbd6512d47acf5.tar.gz
linux-stable-b543e1fdd19bbc4b2cbecdcc33fbd6512d47acf5.tar.bz2
linux-stable-b543e1fdd19bbc4b2cbecdcc33fbd6512d47acf5.zip
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>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/mlme_linux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/mlme_linux.c b/drivers/staging/rtl8188eu/os_dep/mlme_linux.c
index 0321f1d45809..cd6298e4920d 100644
--- a/drivers/staging/rtl8188eu/os_dep/mlme_linux.c
+++ b/drivers/staging/rtl8188eu/os_dep/mlme_linux.c
@@ -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