diff --git a/oci/devices_linux.go b/oci/devices_linux.go index dc43faf764..3a1450372b 100644 --- a/oci/devices_linux.go +++ b/oci/devices_linux.go @@ -25,10 +25,9 @@ func Device(d *configs.Device) specs.LinuxDevice { } func deviceCgroup(d *configs.Device) specs.LinuxDeviceCgroup { - t := string(d.Type) return specs.LinuxDeviceCgroup{ Allow: true, - Type: t, + Type: string(d.Type), Major: &d.Major, Minor: &d.Minor, Access: d.Permissions,