netloop: cleanups
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
Signed-off-by Heiko Schocher <[email protected]>
--- net/net.c | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-)
net/net.c +0 -12
@@ -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
PATCH 1/1 netloop: cleanups
Quoted 6 lines · On Wednesday 25 February 2009 07:40:59 Heiko Schocher wrote:
suggested from Mike Frysinger:
- inNetInitLoop()in BOOTP/RARP case, only read once the "vlan" and "nvlan" environment vars.
- deleted unnecessary PING, SNTP casesSigned-off-by Heiko Schocher <[email protected]>
Acked-by Mike Frysinger <[email protected]>
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