From patchwork Sun Jan 15 19:46:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Linz X-Patchwork-Id: 136204 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 2785CB6F13 for ; Mon, 16 Jan 2012 06:46:34 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9A95028165; Sun, 15 Jan 2012 20:46:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VfZcbY17yoMY; Sun, 15 Jan 2012 20:46:32 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8C8E828179; Sun, 15 Jan 2012 20:46:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9157628179 for ; Sun, 15 Jan 2012 20:46:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YsTSmfrhgWuO for ; Sun, 15 Jan 2012 20:46:28 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.160]) by theia.denx.de (Postfix) with ESMTPS id 40A2E28165 for ; Sun, 15 Jan 2012 20:46:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1326656787; l=771; s=domk; d=li-pro.net; h=References:In-Reply-To:Date:Subject:Cc:To:From:X-RZG-CLASS-ID: X-RZG-AUTH; bh=TrHJ60SV4fbn3+eYyeZXmJ860yk=; b=i18ZhoIpPPQ2kqhxp3nbcj3Pv7bA0OWav2SjAaFieu0iMIYBddAgMQAN5rRHFe0TLil +plDhcyV+hreX67NMN29wUczMBe7z/8/hP9XK3F5G294pMG9vRdio0XSmy3rth/CSGmyk AHeTIFp94c34pLTPlKJquTJszM2cZFporOE= X-RZG-AUTH: :IGUKb2CkcrLHmZv+FHarxbxlXmJO7WRQLa+vsyW+4B7AQuz+obYpxcz3tXxI X-RZG-CLASS-ID: mo00 Received: from localhost.localdomain (i5E86D7BC.versanet.de [94.134.215.188]) by smtp.strato.de (klopstock mo51) (RZmta 27.4 AUTH) with ESMTPA id a068b2o0FIvWnu ; Sun, 15 Jan 2012 20:46:09 +0100 (MET) From: Stephan Linz To: u-boot@lists.denx.de Date: Sun, 15 Jan 2012 20:46:07 +0100 Message-Id: <1326656767-28695-1-git-send-email-linz@li-pro.net> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1326642366-22468-1-git-send-email-linz@li-pro.net> References: <1326642366-22468-1-git-send-email-linz@li-pro.net> Cc: Stephan Linz , ricardo.ribalda@gmail.com Subject: [U-Boot] [PATCH] net: ll_temac: Remove useless memory erasing X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@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 */