summaryrefslogtreecommitdiffstats
path: root/net/ping.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-05-27 11:37:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-06-17 08:28:16 +0200
commit994f95c073caf4df62d1271aef4112ce8aaa8add (patch)
treec0167dbdedb5c3ebc68f374c3f3df7d0b0b8bfdb /net/ping.c
parentc21a7fb9f15ee1fb213e22c0e7a9d0f53b274cb2 (diff)
downloadbarebox-994f95c073caf4df62d1271aef4112ce8aaa8add.tar.gz
barebox-994f95c073caf4df62d1271aef4112ce8aaa8add.tar.xz
net: remove need for eth_halt/eth_open
We used to eth_open/eth_halt the network devices during NetLoopInit which is called whenever the user enters a network command. Change this behaviour so that the current network device gets opened when making it the current one. With this change it's always possible to send packages and we are able to implement a new network stack in the next step. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/ping.c')
-rw-r--r--net/ping.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ping.c b/net/ping.c
index 1bc481af44..7e21fe4ccf 100644
--- a/net/ping.c
+++ b/net/ping.c
@@ -62,7 +62,6 @@ static int PingSend(void)
static void
PingTimeout (void)
{
- eth_halt();
NetState = NETLOOP_FAIL; /* we did not get the reply */
}