From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WctLQ-0003g5-4Z for barebox@lists.infradead.org; Wed, 23 Apr 2014 09:19:56 +0000 Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:a236:9fff:fe00:814]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WctL1-00023X-PM for barebox@lists.infradead.org; Wed, 23 Apr 2014 11:19:31 +0200 Received: from jbe by dude.hi.pengutronix.de with local (Exim 4.82) (envelope-from ) id 1WctL3-0001ZW-10 for barebox@lists.infradead.org; Wed, 23 Apr 2014 11:19:33 +0200 From: Juergen Borleis Date: Wed, 23 Apr 2014 11:19:25 +0200 Message-Id: <1398244766-5843-3-git-send-email-jbe@pengutronix.de> In-Reply-To: <1398244766-5843-1-git-send-email-jbe@pengutronix.de> References: <1398244766-5843-1-git-send-email-jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/3] net/ifup.c: avoid setting the MAC twice To: barebox@lists.infradead.org The command always sets the MAC address of the interface in the code path. For the static network configuration case it sets it again, due to the environment variable keyword ("ethaddr") is listed again in the table. Remove this keyword from the table, because the MAC is already set. Signed-off-by: Juergen Borleis --- net/ifup.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ifup.c b/net/ifup.c index c74120c..3216ce7 100644 --- a/net/ifup.c +++ b/net/ifup.c @@ -31,7 +31,6 @@ static char *vars[] = { "netmask", "gateway", "serverip", - "ethaddr", }; static int eth_set_param(struct device_d *dev, const char *param) -- 1.9.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox