summaryrefslogtreecommitdiff
path: root/drivers/net/wan/sealevel.c
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2021-05-30 09:24:31 +0300
committerJakub Kicinski <kuba@kernel.org>2021-06-01 08:14:03 +0300
commitcc51e3f36e6268697cf760dc770dc51154e13a51 (patch)
tree28661d056a93390d4caa522aa5c591a5ed3fd11b /drivers/net/wan/sealevel.c
parent40e8ee9d467dda815b10e9c2eb77ab7cf715ca1a (diff)
downloadlinux-cc51e3f36e6268697cf760dc770dc51154e13a51.tar.xz
net: sealevel: fix a code style issue about switch and case
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>
Diffstat (limited to 'drivers/net/wan/sealevel.c')
-rw-r--r--drivers/net/wan/sealevel.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/wan/sealevel.c b/drivers/net/wan/sealevel.c
index d19e9024865f..e07309e0d971 100644
--- a/drivers/net/wan/sealevel.c
+++ b/drivers/net/wan/sealevel.c
@@ -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)
@@ -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;
}
@@ -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;
}