staging: rtl8188eu: refactor if else statement
Refactor if else statement to clear checkpatch warnings. WARNING: else is not generally useful after a break or return WARNING: line over 80 characters Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
794f816566
commit
c202e1ab78
@ -1758,12 +1758,9 @@ int rtw_restruct_sec_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_
|
|||||||
}
|
}
|
||||||
|
|
||||||
iEntry = SecIsInPMKIDList(adapter, pmlmepriv->assoc_bssid);
|
iEntry = SecIsInPMKIDList(adapter, pmlmepriv->assoc_bssid);
|
||||||
if (iEntry < 0) {
|
if (iEntry >= 0 && authmode == _WPA2_IE_ID_)
|
||||||
return ielength;
|
ielength = rtw_append_pmkid(adapter, iEntry, out_ie, ielength);
|
||||||
} else {
|
|
||||||
if (authmode == _WPA2_IE_ID_)
|
|
||||||
ielength = rtw_append_pmkid(adapter, iEntry, out_ie, ielength);
|
|
||||||
}
|
|
||||||
return ielength;
|
return ielength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user