From bcc24ec8ad26ebb3564eb462fd80654964ff4651 Mon Sep 17 00:00:00 2001 From: Ma Shimiao Date: Sat, 9 May 2015 10:06:53 +0800 Subject: [PATCH] cleanup remove unneeded locks Signed-off-by: Ma Shimiao --- daemon/container.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/daemon/container.go b/daemon/container.go index 1174a7071d..65078a20e1 100644 --- a/daemon/container.go +++ b/daemon/container.go @@ -1052,16 +1052,11 @@ func (container *Container) Exposes(p nat.Port) bool { } func (container *Container) HostConfig() *runconfig.HostConfig { - container.Lock() - res := container.hostConfig - container.Unlock() - return res + return container.hostConfig } func (container *Container) SetHostConfig(hostConfig *runconfig.HostConfig) { - container.Lock() container.hostConfig = hostConfig - container.Unlock() } func (container *Container) DisableLink(name string) {