Commit cc51e3f3 authored by Peng Li's avatar Peng Li Committed by Jakub Kicinski

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: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 40e8ee9d
...@@ -79,12 +79,12 @@ static int sealevel_open(struct net_device *d) ...@@ -79,12 +79,12 @@ static int sealevel_open(struct net_device *d)
*/ */
switch (unit) { switch (unit) {
case 0: case 0:
err = z8530_sync_dma_open(d, slvl->chan); err = z8530_sync_dma_open(d, slvl->chan);
break; break;
case 1: case 1:
err = z8530_sync_open(d, slvl->chan); err = z8530_sync_open(d, slvl->chan);
break; break;
} }
if (err) if (err)
...@@ -93,12 +93,12 @@ static int sealevel_open(struct net_device *d) ...@@ -93,12 +93,12 @@ static int sealevel_open(struct net_device *d)
err = hdlc_open(d); err = hdlc_open(d);
if (err) { if (err) {
switch (unit) { switch (unit) {
case 0: case 0:
z8530_sync_dma_close(d, slvl->chan); z8530_sync_dma_close(d, slvl->chan);
break; break;
case 1: case 1:
z8530_sync_close(d, slvl->chan); z8530_sync_close(d, slvl->chan);
break; break;
} }
return err; return err;
} }
...@@ -127,12 +127,12 @@ static int sealevel_close(struct net_device *d) ...@@ -127,12 +127,12 @@ static int sealevel_close(struct net_device *d)
netif_stop_queue(d); netif_stop_queue(d);
switch (unit) { switch (unit) {
case 0: case 0:
z8530_sync_dma_close(d, slvl->chan); z8530_sync_dma_close(d, slvl->chan);
break; break;
case 1: case 1:
z8530_sync_close(d, slvl->chan); z8530_sync_close(d, slvl->chan);
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