From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] netloop: cleanups
Date: Wed, 25 Feb 2009 13:40:59 +0100 [thread overview]
Message-ID: <49A53C5B.7070904@denx.de> (raw)
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 <hs@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
next reply other threads:[~2009-02-25 12:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-25 12:40 Heiko Schocher [this message]
2009-02-25 17:02 ` [U-Boot] [PATCH] netloop: cleanups Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49A53C5B.7070904@denx.de \
--to=hs@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox