Browse code

Merge pull request #37703 from kolyshkin/rm-dead-code

daemon/setMounts(): remove dead code

Brian Goff authored on 2018/09/26 08:07:15
Showing 1 changed files
... ...
@@ -498,12 +498,6 @@ func setMounts(daemon *Daemon, s *specs.Spec, c *container.Container, mounts []c
498 498
 
499 499
 	s.Mounts = defaultMounts
500 500
 	for _, m := range mounts {
501
-		for _, cm := range s.Mounts {
502
-			if cm.Destination == m.Destination {
503
-				return duplicateMountPointError(m.Destination)
504
-			}
505
-		}
506
-
507 501
 		if m.Source == "tmpfs" {
508 502
 			data := m.Data
509 503
 			parser := volumemounts.NewParser("linux")