Merge pull request #41291 from thaJeztah/micro_nit

oci/deviceCgroup(): remove redundant variable
This commit is contained in:
Tibor Vass 2020-07-29 23:59:19 +02:00 committed by GitHub
commit c87a330757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,