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: Haneen Mohammed <hamohammed.sa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
382d020f44
commit
819ef63815
@ -1597,7 +1597,6 @@ sint r8712_restruct_sec_ie(struct _adapter *adapter, u8 *in_ie,
|
||||
iEntry = SecIsInPMKIDList(adapter, pmlmepriv->assoc_bssid);
|
||||
if (iEntry < 0)
|
||||
return ielength;
|
||||
else {
|
||||
if (authmode == _WPA2_IE_ID_) {
|
||||
out_ie[ielength] = 1;
|
||||
ielength++;
|
||||
@ -1608,7 +1607,6 @@ sint r8712_restruct_sec_ie(struct _adapter *adapter, u8 *in_ie,
|
||||
ielength += 16;
|
||||
out_ie[13] += 18;/*PMKID length = 2+16*/
|
||||
}
|
||||
}
|
||||
return ielength;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user