Commit 9562aef3 authored by Peng Li's avatar Peng Li Committed by David S. Miller

net: hostess_sv11: fix the code style issue about switch and case

According to the chackpatch.pl,
switch and case should be at the same indent.
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 534f76d4
...@@ -85,15 +85,15 @@ static int hostess_open(struct net_device *d) ...@@ -85,15 +85,15 @@ static int hostess_open(struct net_device *d)
* Link layer up * Link layer up
*/ */
switch (dma) { switch (dma) {
case 0: case 0:
err = z8530_sync_open(d, &sv11->chanA); err = z8530_sync_open(d, &sv11->chanA);
break; break;
case 1: case 1:
err = z8530_sync_dma_open(d, &sv11->chanA); err = z8530_sync_dma_open(d, &sv11->chanA);
break; break;
case 2: case 2:
err = z8530_sync_txdma_open(d, &sv11->chanA); err = z8530_sync_txdma_open(d, &sv11->chanA);
break; break;
} }
if (err) if (err)
...@@ -102,15 +102,15 @@ static int hostess_open(struct net_device *d) ...@@ -102,15 +102,15 @@ static int hostess_open(struct net_device *d)
err = hdlc_open(d); err = hdlc_open(d);
if (err) { if (err) {
switch (dma) { switch (dma) {
case 0: case 0:
z8530_sync_close(d, &sv11->chanA); z8530_sync_close(d, &sv11->chanA);
break; break;
case 1: case 1:
z8530_sync_dma_close(d, &sv11->chanA); z8530_sync_dma_close(d, &sv11->chanA);
break; break;
case 2: case 2:
z8530_sync_txdma_close(d, &sv11->chanA); z8530_sync_txdma_close(d, &sv11->chanA);
break; break;
} }
return err; return err;
} }
...@@ -136,15 +136,15 @@ static int hostess_close(struct net_device *d) ...@@ -136,15 +136,15 @@ static int hostess_close(struct net_device *d)
netif_stop_queue(d); netif_stop_queue(d);
switch (dma) { switch (dma) {
case 0: case 0:
z8530_sync_close(d, &sv11->chanA); z8530_sync_close(d, &sv11->chanA);
break; break;
case 1: case 1:
z8530_sync_dma_close(d, &sv11->chanA); z8530_sync_dma_close(d, &sv11->chanA);
break; break;
case 2: case 2:
z8530_sync_txdma_close(d, &sv11->chanA); z8530_sync_txdma_close(d, &sv11->chanA);
break; break;
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment