aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRudy Matela <rudy.matela@gmail.com>2009-12-02 04:26:01 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-02 04:26:01 -0500
commit614c12a1581687501f1b0fc721feff69b47abd92 (patch)
tree33c98a20f5c5003da4009a8650b711dab901b128 /drivers
parent5b23136bcf766a58160a319677b366c90f0cd223 (diff)
net: Coding style corrections on Sealevel Systems 4021 driver.
Changed braces position on some statements. Inserted a space between an "if" keyword and a parenthesis. Signed-off-by: Rudy Matela <rudy.matela@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wan/sealevel.c11
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
392static void __exit slvl_cleanup_module(void) 389static 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