diff options
Diffstat (limited to 'drivers/net/wan/sealevel.c')
-rw-r--r-- | drivers/net/wan/sealevel.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/wan/sealevel.c b/drivers/net/wan/sealevel.c index 3b3ee05bc462..61249f489e37 100644 --- a/drivers/net/wan/sealevel.c +++ b/drivers/net/wan/sealevel.c | |||
@@ -84,8 +84,7 @@ static int sealevel_open(struct net_device *d) | |||
84 | * Link layer up. | 84 | * Link layer up. |
85 | */ | 85 | */ |
86 | 86 | ||
87 | switch (unit) | 87 | switch (unit) { |
88 | { | ||
89 | case 0: | 88 | case 0: |
90 | err = z8530_sync_dma_open(d, slvl->chan); | 89 | err = z8530_sync_dma_open(d, slvl->chan); |
91 | break; | 90 | break; |
@@ -133,8 +132,7 @@ static int sealevel_close(struct net_device *d) | |||
133 | hdlc_close(d); | 132 | hdlc_close(d); |
134 | netif_stop_queue(d); | 133 | netif_stop_queue(d); |
135 | 134 | ||
136 | switch (unit) | 135 | switch (unit) { |
137 | { | ||
138 | case 0: | 136 | case 0: |
139 | z8530_sync_dma_close(d, slvl->chan); | 137 | z8530_sync_dma_close(d, slvl->chan); |
140 | break; | 138 | break; |
@@ -342,8 +340,7 @@ static void __exit slvl_shutdown(struct slvl_board *b) | |||
342 | 340 | ||
343 | z8530_shutdown(&b->board); | 341 | z8530_shutdown(&b->board); |
344 | 342 | ||
345 | for (u = 0; u < 2; u++) | 343 | for (u = 0; u < 2; u++) { |
346 | { | ||
347 | struct net_device *d = b->dev[u].chan->netdevice; | 344 | struct net_device *d = b->dev[u].chan->netdevice; |
348 | unregister_hdlc_device(d); | 345 | unregister_hdlc_device(d); |
349 | free_netdev(d); | 346 | free_netdev(d); |
@@ -391,7 +388,7 @@ static int __init slvl_init_module(void) | |||
391 | 388 | ||
392 | static void __exit slvl_cleanup_module(void) | 389 | static void __exit slvl_cleanup_module(void) |
393 | { | 390 | { |
394 | if(slvl_unit) | 391 | if (slvl_unit) |
395 | slvl_shutdown(slvl_unit); | 392 | slvl_shutdown(slvl_unit); |
396 | } | 393 | } |
397 | 394 | ||