netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: Coding style corrections on Sealevel Systems 4021 driver.
@ 2009-11-29  2:49 Rudy Matela
  2009-12-02  9:26 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Rudy Matela @ 2009-11-29  2:49 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel, netdev

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>
---

 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 0c525e2..6b03704 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)
 	 *	Link layer up.
 	 */
 
-	switch (unit)
-	{
+	switch (unit) {
 		case 0:
 			err = z8530_sync_dma_open(d, slvl->chan);
 			break;
@@ -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;
@@ -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);
@@ -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);
 }
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: Coding style corrections on Sealevel Systems 4021 driver.
  2009-11-29  2:49 [PATCH] net: Coding style corrections on Sealevel Systems 4021 driver Rudy Matela
@ 2009-12-02  9:26 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-12-02  9:26 UTC (permalink / raw)
  To: rudy.matela; +Cc: trivial, linux-kernel, netdev

From: Rudy Matela <rudy.matela@gmail.com>
Date: Sat, 28 Nov 2009 23:49:44 -0300

> 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>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-02  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-29  2:49 [PATCH] net: Coding style corrections on Sealevel Systems 4021 driver Rudy Matela
2009-12-02  9:26 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).