[U-Boot] [PATCH] net: ll_temac: Remove useless memory erasing

Stephan Linz linz at li-pro.net
Sun Jan 15 20:46:07 CET 2012


In xilinx_ll_temac_initialize() the memory is already zero-ed
by the call to calloc, so this loop is useless.

Signed-off-by: Stephan Linz <linz at li-pro.net>
---
 drivers/net/xilinx_ll_temac.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/net/xilinx_ll_temac.c b/drivers/net/xilinx_ll_temac.c
index 8533358..e050250 100644
--- a/drivers/net/xilinx_ll_temac.c
+++ b/drivers/net/xilinx_ll_temac.c
@@ -387,10 +387,6 @@ int xilinx_ll_temac_initialize(bd_t *bis, struct ll_temac_info *devinf)
 	else
 		ll_temac->phyaddr = devinf->phyaddr;
 
-	/* Tell u-boot to get the addr from the env */
-	for (i = 0; i < 6; i++)
-		dev->enetaddr[i] = 0;
-
 	eth_register(dev);
 
 	/* Try to initialize PHY here, and return */
-- 
1.7.0.4



More information about the U-Boot mailing list