[U-Boot] [PATCH 2/6] net: usbeth: remove misleading warning
Lucas Stach
dev at lynxeye.de
Wed Aug 22 12:09:03 CEST 2012
If the environment doesn't provide a MAC address it's not an
error to use the one provided by the eth adapter. Actually it
should be the default case if the adapter exports it's own
address during get_info().
So just remove the warning that gets printed in this case.
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
net/eth.c | 2 --
1 Datei geändert, 2 Zeilen entfernt(-)
diff --git a/net/eth.c b/net/eth.c
index 1a11ce1..39cd5da 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -217,8 +217,6 @@ int eth_write_hwaddr(struct eth_device *dev, const char *base_name,
} else if (is_valid_ether_addr(dev->enetaddr)) {
eth_setenv_enetaddr_by_index(base_name, eth_number,
dev->enetaddr);
- printf("\nWarning: %s using MAC address from net device\n",
- dev->name);
}
if (dev->write_hwaddr &&
--
1.7.11.4
More information about the U-Boot
mailing list