From fa8560e3859037e7f5a7e2b37fedd91c7f6d0cf9 Mon Sep 17 00:00:00 2001 From: Andrew Clay Shafer Date: Thu, 8 Jan 2015 21:09:23 -0500 Subject: [PATCH] remove redundant 'Get' for MacAddress remove second redundant call to set MacAddress from env Signed-off-by: Andrew Clay Shafer --- daemon/container.go | 1 - 1 file changed, 1 deletion(-) diff --git a/daemon/container.go b/daemon/container.go index 0effa99c11..85e16e401a 100644 --- a/daemon/container.go +++ b/daemon/container.go @@ -544,7 +544,6 @@ func (container *Container) AllocateNetwork() error { container.NetworkSettings.IPPrefixLen = env.GetInt("IPPrefixLen") container.NetworkSettings.MacAddress = env.Get("MacAddress") container.NetworkSettings.Gateway = env.Get("Gateway") - container.NetworkSettings.MacAddress = env.Get("MacAddress") container.NetworkSettings.LinkLocalIPv6Address = env.Get("LinkLocalIPv6") container.NetworkSettings.LinkLocalIPv6PrefixLen = 64 container.NetworkSettings.GlobalIPv6Address = env.Get("GlobalIPv6")