Skip to content

Commit

Permalink
net: sealevel: fix a code style issue about switch and case
Browse files Browse the repository at this point in the history
According to the chackpatch.pl, switch and case should be
at the same indent.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Peng Li authored and Jakub Kicinski committed Jun 1, 2021
1 parent 40e8ee9 commit cc51e3f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions drivers/net/wan/sealevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ static int sealevel_open(struct net_device *d)
*/

switch (unit) {
case 0:
err = z8530_sync_dma_open(d, slvl->chan);
break;
case 1:
err = z8530_sync_open(d, slvl->chan);
break;
case 0:
err = z8530_sync_dma_open(d, slvl->chan);
break;
case 1:
err = z8530_sync_open(d, slvl->chan);
break;
}

if (err)
Expand All @@ -93,12 +93,12 @@ static int sealevel_open(struct net_device *d)
err = hdlc_open(d);
if (err) {
switch (unit) {
case 0:
z8530_sync_dma_close(d, slvl->chan);
break;
case 1:
z8530_sync_close(d, slvl->chan);
break;
case 0:
z8530_sync_dma_close(d, slvl->chan);
break;
case 1:
z8530_sync_close(d, slvl->chan);
break;
}
return err;
}
Expand Down Expand Up @@ -127,12 +127,12 @@ static int sealevel_close(struct net_device *d)
netif_stop_queue(d);

switch (unit) {
case 0:
z8530_sync_dma_close(d, slvl->chan);
break;
case 1:
z8530_sync_close(d, slvl->chan);
break;
case 0:
z8530_sync_dma_close(d, slvl->chan);
break;
case 1:
z8530_sync_close(d, slvl->chan);
break;
}
return 0;
}
Expand Down

0 comments on commit cc51e3f

Please sign in to comment.