diff --git a/daemon/networkdriver/bridge/driver.go b/daemon/networkdriver/bridge/driver.go index bc17dbcd01..329052be41 100644 --- a/daemon/networkdriver/bridge/driver.go +++ b/daemon/networkdriver/bridge/driver.go @@ -508,11 +508,7 @@ func Allocate(job *engine.Job) engine.Status { globalIPv6 net.IP ) - if requestedIP != nil { - ip, err = ipallocator.RequestIP(bridgeIPv4Network, requestedIP) - } else { - ip, err = ipallocator.RequestIP(bridgeIPv4Network, nil) - } + ip, err = ipallocator.RequestIP(bridgeIPv4Network, requestedIP) if err != nil { return job.Error(err) }