Skip to contentSkip to conversation

net: Trivial coding style issue with empty for statement

PATCH New Detlev Zundel 2 participants 2 messages Mar 31, 2010 – Apr 5, 2010 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: Trivial coding style issue with empty for statement

---
 net/eth.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
net/eth.c +3 -2
index b650a20..aff6987 100644
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2001-2004
+ * (C) Copyright 2001-2010
  * Wolfgang Denk, DENX Software Engineering, wd at denx.de.
  *
  * See file CREDITS for list of people who contributed to this
@@ -173,7 +173,8 @@ int eth_register(struct eth_device* dev)
 		}
 #endif
 	} else {
-		for (d=eth_devices; d->next!=eth_devices; d=d->next);
+		for (d=eth_devices; d->next!=eth_devices; d=d->next)
+			;
 		d->next = dev;
 	}
 
Signature · 1 line
1.6.2.5
Applied
#1 lore raw

PATCH 1/1 net: Trivial coding style issue with empty for statement

Hi Detlev,

Quoted 19 lines · Detlev Zundel
---
  net/eth.c |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)
net/eth.c +1 -1
index b650a20..aff6987 100644
@@ -1,5 +1,5 @@
  /*
- * (C) Copyright 2001-2004
+ * (C) Copyright 2001-2010
   * Wolfgang Denk, DENX Software Engineering, wd at denx.de.
   *
   * See file CREDITS for list of people who contributed to this

net/eth.c int eth_register(struct eth_device* dev) · line 180

Quoted 9 lines
net/eth.c +2 -1
@@ -173,7 +173,8 @@ int eth_register(struct eth_device* dev)
  		}
  #endif
  	} else {
-		for (d=eth_devices; d->next!=eth_devices; d=d->next);
+		for (d=eth_devices; d->next!=eth_devices; d=d->next)
+			;
  		d->next = dev;
  	}
 

Applied to net repo.

thanks,
Ben