summaryrefslogtreecommitdiffstats
path: root/net/ifup.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-11-20 23:43:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-14 14:30:19 +0100
commit2319503ed22a6daea00de1c6f0965fcc4e649dd2 (patch)
tree386b78b23ee39ab57e1f07b22cbc88c4e38f2d0e /net/ifup.c
parent4362c73ac768ad7218982fc1ccf8ae04285c27d1 (diff)
downloadbarebox-2319503ed22a6daea00de1c6f0965fcc4e649dd2.tar.gz
barebox-2319503ed22a6daea00de1c6f0965fcc4e649dd2.tar.xz
net: remove "current" network device
Now that we can do routing we no longer need a "current" network device. Remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/ifup.c')
-rw-r--r--net/ifup.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ifup.c b/net/ifup.c
index 2160e3ae46..423712e19c 100644
--- a/net/ifup.c
+++ b/net/ifup.c
@@ -58,8 +58,6 @@ int ifup(const char *name, unsigned flags)
if (edev && edev->ipaddr && !(flags & IFUP_FLAG_FORCE))
return 0;
- eth_set_current(edev);
-
env_push_context();
setenv("ip", "");