oci/deviceCgroup(): remove redundant variable

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-07-29 14:50:56 +02:00
parent 516d9719d5
commit bd0c2b3581
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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,