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 <h...@denx.de>
---
 net/net.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/net/net.c b/net/net.c
index a80c814..b514538 100644
--- a/net/net.c
+++ b/net/net.c
@@ -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");
-- 
1.6.0.6

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to