Skip to contentSkip to conversation

netloop: cleanups

PATCH New Heiko Schocher 2 participants 2 messages Feb 25, 2009 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netloop: cleanups

suggested from Mike Frysinger:
- in NetInitLoop() in BOOTP/RARP case, only read once the "vlan" and "nvlan" environment vars.
- deleted unnecessary PING, SNTP cases

---
 net/net.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
net/net.c +0 -12
index a80c814..b514538 100644
@@ -313,16 +313,6 @@ NetInitLoop(proto_t protocol)
 		case TFTP:
 			NetServerIP = getenv_IPaddr ("serverip");
 			break;
-#if defined(CONFIG_CMD_PING)
-		case PING:
-			/* nothing */
-			break;
-#endif
-#if defined(CONFIG_CMD_SNTP)
-		case SNTP:
-			/* nothing */
-			break;
-#endif
 		default:
 			break;
 		}
@@ -336,8 +326,6 @@ NetInitLoop(proto_t protocol)
 		 */
 		NetOurIP = 0;
 		NetServerIP = getenv_IPaddr ("serverip");
-		NetOurVLAN = getenv_VLAN("vlan");	/* VLANs must be read */
-		NetOurNativeVLAN = getenv_VLAN("nvlan");
 	case CDP:
 		NetOurVLAN = getenv_VLAN("vlan");	/* VLANs must be read */
 		NetOurNativeVLAN = getenv_VLAN("nvlan");
Signature · 5 lines
1.6.0.6

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
#1 lore raw

PATCH 1/1 netloop: cleanups

Quoted 6 lines · On Wednesday 25 February 2009 07:40:59 Heiko Schocher wrote:

suggested from Mike Frysinger:
- in NetInitLoop() in BOOTP/RARP case, only read once the "vlan" and "nvlan" environment vars.
- deleted unnecessary PING, SNTP cases

thanks!
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090225/50aacab1/attachment.pgp