summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/coreconfigurator.c
diff options
context:
space:
mode:
authorAybuke Ozdemir2015-10-17 14:25:34 +0200
committerGreg Kroah-Hartman2015-10-17 18:03:16 +0200
commit86e4180e122161469f5215aed6a75300a1c406e7 (patch)
tree0f6fd5e35e4ec9fcb2de8383d0f4867d37f8786e /drivers/staging/wilc1000/coreconfigurator.c
parentStaging: wilc1000: Remove multiple blank lines (diff)
downloadkernel-qcow2-linux-86e4180e122161469f5215aed6a75300a1c406e7.tar.gz
kernel-qcow2-linux-86e4180e122161469f5215aed6a75300a1c406e7.tar.xz
kernel-qcow2-linux-86e4180e122161469f5215aed6a75300a1c406e7.zip
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>
Diffstat (limited to 'drivers/staging/wilc1000/coreconfigurator.c')
-rw-r--r--drivers/staging/wilc1000/coreconfigurator.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c
index 93f3c75f1546..cea7c6feb4bf 100644
--- a/drivers/staging/wilc1000/coreconfigurator.c
+++ b/drivers/staging/wilc1000/coreconfigurator.c
@@ -307,8 +307,7 @@ u8 *get_tim_elm(u8 *pu8msa, u16 u16RxLen, u16 u16TagParamOffset)
while (u16index < (u16RxLen - FCS_LEN)) {
if (pu8msa[u16index] == ITIM)
return &pu8msa[u16index];
- else
- u16index += (IE_HDR_LEN + pu8msa[u16index + 1]);
+ u16index += (IE_HDR_LEN + pu8msa[u16index + 1]);
}
return NULL;
@@ -324,9 +323,8 @@ u8 get_current_channel_802_11n(u8 *pu8msa, u16 u16RxLen)
while (index < (u16RxLen - FCS_LEN)) {
if (pu8msa[index] == IDSPARMS)
return pu8msa[index + 2];
- else
- /* Increment index by length information and header */
- index += pu8msa[index + 1] + IE_HDR_LEN;
+ /* Increment index by length information and header */
+ index += pu8msa[index + 1] + IE_HDR_LEN;
}
/* Return current channel information from the MIB, if beacon/probe */