oci/deviceCgroup(): remove redundant variable
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
516d9719d5
commit
bd0c2b3581
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue