summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorYang Liu <yliu@cybertec.com.au>2020-12-21 14:44:39 +1100
committerTom Rini <trini@konsulko.com>2021-01-27 08:25:31 -0500
commitd9506cd41ce98e10a29c25c4766878367103bb2d (patch)
treebbfcc588c624e9e7ca2e13b53b083c536c25a31a /net
parent14807449a4a04fa478c5aba2142b6c157cfcfe4b (diff)
downloadu-boot-d9506cd41ce98e10a29c25c4766878367103bb2d.tar.gz
net: fix ping in netconsole
Should not init eth device when doing ping in netconsole. Signed-off-by: Yang Liu <yliu@cybertec.com.au> Cc: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r--net/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index ad7e3b3cf8..b58f3062b2 100644
--- a/net/net.c
+++ b/net/net.c
@@ -412,7 +412,7 @@ int net_loop(enum proto_t protocol)
bootstage_mark_name(BOOTSTAGE_ID_ETH_START, "eth_start");
net_init();
- if (eth_is_on_demand_init() || protocol != NETCONS) {
+ if (eth_is_on_demand_init()) {
eth_halt();
eth_set_current();
ret = eth_init();