Skip to content

Commit

Permalink
net: hostess_sv11: fix the 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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
321lipeng authored and davem330 committed Jun 18, 2021
1 parent 534f76d commit 9562aef
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions drivers/net/wan/hostess_sv11.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ static int hostess_open(struct net_device *d)
* Link layer up
*/
switch (dma) {
case 0:
err = z8530_sync_open(d, &sv11->chanA);
break;
case 1:
err = z8530_sync_dma_open(d, &sv11->chanA);
break;
case 2:
err = z8530_sync_txdma_open(d, &sv11->chanA);
break;
case 0:
err = z8530_sync_open(d, &sv11->chanA);
break;
case 1:
err = z8530_sync_dma_open(d, &sv11->chanA);
break;
case 2:
err = z8530_sync_txdma_open(d, &sv11->chanA);
break;
}

if (err)
Expand All @@ -102,15 +102,15 @@ static int hostess_open(struct net_device *d)
err = hdlc_open(d);
if (err) {
switch (dma) {
case 0:
z8530_sync_close(d, &sv11->chanA);
break;
case 1:
z8530_sync_dma_close(d, &sv11->chanA);
break;
case 2:
z8530_sync_txdma_close(d, &sv11->chanA);
break;
case 0:
z8530_sync_close(d, &sv11->chanA);
break;
case 1:
z8530_sync_dma_close(d, &sv11->chanA);
break;
case 2:
z8530_sync_txdma_close(d, &sv11->chanA);
break;
}
return err;
}
Expand All @@ -136,15 +136,15 @@ static int hostess_close(struct net_device *d)
netif_stop_queue(d);

switch (dma) {
case 0:
z8530_sync_close(d, &sv11->chanA);
break;
case 1:
z8530_sync_dma_close(d, &sv11->chanA);
break;
case 2:
z8530_sync_txdma_close(d, &sv11->chanA);
break;
case 0:
z8530_sync_close(d, &sv11->chanA);
break;
case 1:
z8530_sync_dma_close(d, &sv11->chanA);
break;
case 2:
z8530_sync_txdma_close(d, &sv11->chanA);
break;
}
return 0;
}
Expand Down

0 comments on commit 9562aef

Please sign in to comment.