Skip to content

Commit

Permalink
staging: rtl8188eu: reorder switch cases and remove default break
Browse files Browse the repository at this point in the history
Reorder the cases of a switch statement to be in ascending order.
Remove unrequired break from default case.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Michael Straube authored and Greg Kroah-Hartman committed Jul 2, 2018
1 parent 9d4bedc commit 3a26036
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/staging/rtl8188eu/hal/hal_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,18 +264,17 @@ bool Hal_MappingOutPipe(struct adapter *adapter, u8 numoutpipe)
bool result = true;

switch (numoutpipe) {
case 1:
one_out_pipe(adapter);
break;
case 2:
two_out_pipe(adapter, wifi_cfg);
break;
case 3:
three_out_pipe(adapter, wifi_cfg);
break;
case 1:
one_out_pipe(adapter);
break;
default:
result = false;
break;
}
return result;
}
Expand Down

0 comments on commit 3a26036

Please sign in to comment.