mirror of https://gitee.com/openkylin/linux.git
Staging: wilc1000: Remove unnecessary else after return
Problem found using checkpatch.pl: WARNING: else is not generally useful after a break or return Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
350979e487
commit
86e4180e12
|
@ -307,7 +307,6 @@ u8 *get_tim_elm(u8 *pu8msa, u16 u16RxLen, u16 u16TagParamOffset)
|
||||||
while (u16index < (u16RxLen - FCS_LEN)) {
|
while (u16index < (u16RxLen - FCS_LEN)) {
|
||||||
if (pu8msa[u16index] == ITIM)
|
if (pu8msa[u16index] == ITIM)
|
||||||
return &pu8msa[u16index];
|
return &pu8msa[u16index];
|
||||||
else
|
|
||||||
u16index += (IE_HDR_LEN + pu8msa[u16index + 1]);
|
u16index += (IE_HDR_LEN + pu8msa[u16index + 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -324,7 +323,6 @@ u8 get_current_channel_802_11n(u8 *pu8msa, u16 u16RxLen)
|
||||||
while (index < (u16RxLen - FCS_LEN)) {
|
while (index < (u16RxLen - FCS_LEN)) {
|
||||||
if (pu8msa[index] == IDSPARMS)
|
if (pu8msa[index] == IDSPARMS)
|
||||||
return pu8msa[index + 2];
|
return pu8msa[index + 2];
|
||||||
else
|
|
||||||
/* Increment index by length information and header */
|
/* Increment index by length information and header */
|
||||||
index += pu8msa[index + 1] + IE_HDR_LEN;
|
index += pu8msa[index + 1] + IE_HDR_LEN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue