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>
This commit is contained in:
parent
3033669eb2
commit
bf1c66e815
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user