Skip to content

Commit

Permalink
net: Coding style corrections on Sealevel Systems 4021 driver.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rudy Matela authored and David S. Miller committed Dec 2, 2009
1 parent 5b23136 commit 614c12a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions drivers/net/wan/sealevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ static int sealevel_open(struct net_device *d)
* Link layer up.
*/

switch (unit)
{
switch (unit) {
case 0:
err = z8530_sync_dma_open(d, slvl->chan);
break;
Expand Down Expand Up @@ -133,8 +132,7 @@ static int sealevel_close(struct net_device *d)
hdlc_close(d);
netif_stop_queue(d);

switch (unit)
{
switch (unit) {
case 0:
z8530_sync_dma_close(d, slvl->chan);
break;
Expand Down Expand Up @@ -342,8 +340,7 @@ static void __exit slvl_shutdown(struct slvl_board *b)

z8530_shutdown(&b->board);

for (u = 0; u < 2; u++)
{
for (u = 0; u < 2; u++) {
struct net_device *d = b->dev[u].chan->netdevice;
unregister_hdlc_device(d);
free_netdev(d);
Expand Down Expand Up @@ -391,7 +388,7 @@ static int __init slvl_init_module(void)

static void __exit slvl_cleanup_module(void)
{
if(slvl_unit)
if (slvl_unit)
slvl_shutdown(slvl_unit);
}

Expand Down

0 comments on commit 614c12a

Please sign in to comment.