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,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;
}
......
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