Commit 819ef638 authored by Haneen Mohammed's avatar Haneen Mohammed Committed by Greg Kroah-Hartman

Staging: rtl8712: remove else after return statement

else after return generally is not useful. This patch removes else after return
statement. Issue addressed by checkpatch.pl.
Signed-off-by: default avatarHaneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 382d020f
...@@ -1597,17 +1597,15 @@ sint r8712_restruct_sec_ie(struct _adapter *adapter, u8 *in_ie, ...@@ -1597,17 +1597,15 @@ sint r8712_restruct_sec_ie(struct _adapter *adapter, u8 *in_ie,
iEntry = SecIsInPMKIDList(adapter, pmlmepriv->assoc_bssid); iEntry = SecIsInPMKIDList(adapter, pmlmepriv->assoc_bssid);
if (iEntry < 0) if (iEntry < 0)
return ielength; return ielength;
else { if (authmode == _WPA2_IE_ID_) {
if (authmode == _WPA2_IE_ID_) { out_ie[ielength] = 1;
out_ie[ielength] = 1; ielength++;
ielength++; out_ie[ielength] = 0; /*PMKID count = 0x0100*/
out_ie[ielength] = 0; /*PMKID count = 0x0100*/ ielength++;
ielength++; memcpy(&out_ie[ielength],
memcpy(&out_ie[ielength], &psecuritypriv->PMKIDList[iEntry].PMKID, 16);
&psecuritypriv->PMKIDList[iEntry].PMKID, 16); ielength += 16;
ielength += 16; out_ie[13] += 18;/*PMKID length = 2+16*/
out_ie[13] += 18;/*PMKID length = 2+16*/
}
} }
return ielength; return ielength;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment