diff options
-rw-r--r-- | common/fdt_support.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c index 66464dbfd8..ccad16facf 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -491,18 +491,8 @@ void fdt_fixup_ethernet(void *fdt) if (node < 0) return; - if (!getenv("ethaddr")) { - if (getenv("usbethaddr")) { - strcpy(mac, "usbethaddr"); - } else { - debug("No ethernet MAC Address defined\n"); - return; - } - } else { - strcpy(mac, "ethaddr"); - } - i = 0; + strcpy(mac, "ethaddr"); while ((tmp = getenv(mac)) != NULL) { sprintf(enet, "ethernet%d", i); path = fdt_getprop(fdt, node, enet, NULL); |