Browse code

Merge the divided loops

Signed-off-by: Ryo Nakao <nakabonne@gmail.com>

Ryo Nakao authored on 2019/02/24 16:16:19
Showing 1 changed files
... ...
@@ -922,11 +922,9 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
922 922
 		if err != nil {
923 923
 			return nil, err
924 924
 		}
925
-	}
926 925
 
927
-	// As layerstore initialization may set the driver
928
-	for os := range d.graphDrivers {
929
-		d.graphDrivers[os] = layerStores[os].DriverName()
926
+		// As layerstore initialization may set the driver
927
+		d.graphDrivers[operatingSystem] = layerStores[operatingSystem].DriverName()
930 928
 	}
931 929
 
932 930
 	// Configure and validate the kernels security support. Note this is a Linux/FreeBSD