diff options
author | Ksenija Stanojevic <ksenija.stanojevic@gmail.com> | 2015-02-20 22:54:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-26 13:24:15 -0800 |
commit | bf1c66e8158d36daf1598b9350a10b7a235252fa (patch) | |
tree | 2f2477b25af4b7bd7a4ec8f00c54e0ac8fb7599f | |
parent | 3033669eb2606c705b09b5bbcadcfca1108f6947 (diff) | |
download | op-kernel-dev-bf1c66e8158d36daf1598b9350a10b7a235252fa.zip op-kernel-dev-bf1c66e8158d36daf1598b9350a10b7a235252fa.tar.gz |
Staging: rtl8192u: Remove else after return
This patch simplifies the code by removing else and fixes
the following checkpatch.pl warning: "else is not useful after
break or return".
Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8192u/r819xU_phy.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/rtl8192u/r819xU_phy.c b/drivers/staging/rtl8192u/r819xU_phy.c index dbd3321..84a8a9a 100644 --- a/drivers/staging/rtl8192u/r819xU_phy.c +++ b/drivers/staging/rtl8192u/r819xU_phy.c @@ -1365,11 +1365,10 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, if ((*stage) == 2) { (*delay) = CurrentCmd->msDelay; return true; - } else { - (*stage)++; - (*step) = 0; - continue; } + (*stage)++; + (*step) = 0; + continue; } switch (CurrentCmd->CmdID) { |