9
0
Fork 0

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>
This commit is contained in:
Juergen Borleis 2014-04-23 11:19:25 +02:00 committed by Sascha Hauer
parent 4428de2aad
commit 3018f13670
1 changed files with 0 additions and 1 deletions

View File

@ -31,7 +31,6 @@ static char *vars[] = {
"netmask",
"gateway",
"serverip",
"ethaddr",
};
static int eth_set_param(struct device_d *dev, const char *param)