From: Stephan Linz Date: Sun, 15 Jan 2012 20:46:07 +0100 Subject: [U-Boot] [PATCH] net: ll_temac: Remove useless memory erasing In-Reply-To: <1326642366-22468-1-git-send-email-linz@li-pro.net> References: <1326642366-22468-1-git-send-email-linz@li-pro.net> Message-ID: <1326656767-28695-1-git-send-email-linz@li-pro.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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