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>
This commit is contained in:
parent
14807449a4
commit
d9506cd41c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue