summaryrefslogtreecommitdiffstats
path: root/net/ifup.c
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2014-04-23 11:19:25 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-24 09:03:31 +0200
commit3018f1367075dd5310fc5f5ceaf6706ae67b3013 (patch)
tree94b5f70522bb137faa8043ff627b0fd1f43aae13 /net/ifup.c
parent4428de2aad9a540e1375da0e8818534f0648e489 (diff)
downloadbarebox-3018f1367075dd5310fc5f5ceaf6706ae67b3013.tar.gz
barebox-3018f1367075dd5310fc5f5ceaf6706ae67b3013.tar.xz
net/ifup.c: avoid setting the MAC twice
The command always sets the MAC address of the interface in the code path. For the static network configuration case it sets it again, due to the environment variable keyword ("ethaddr") is listed again in the table. Remove this keyword from the table, because the MAC is already set. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/ifup.c')
-rw-r--r--net/ifup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ifup.c b/net/ifup.c
index b259a975dc..409b338ec1 100644
--- a/net/ifup.c
+++ b/net/ifup.c
@@ -31,7 +31,6 @@ static char *vars[] = {
"netmask",
"gateway",
"serverip",
- "ethaddr",
};
static int eth_set_param(struct device_d *dev, const char *param)