Browse code

oci/deviceCgroup(): remove redundant variable

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2020/07/29 21:50:56
Showing 1 changed files
... ...
@@ -25,10 +25,9 @@ func Device(d *configs.Device) specs.LinuxDevice {
25 25
 }
26 26
 
27 27
 func deviceCgroup(d *configs.Device) specs.LinuxDeviceCgroup {
28
-	t := string(d.Type)
29 28
 	return specs.LinuxDeviceCgroup{
30 29
 		Allow:  true,
31
-		Type:   t,
30
+		Type:   string(d.Type),
32 31
 		Major:  &d.Major,
33 32
 		Minor:  &d.Minor,
34 33
 		Access: d.Permissions,