mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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 {
|
func deviceCgroup(d *configs.Device) specs.LinuxDeviceCgroup {
|
||||||
t := string(d.Type)
|
|
||||||
return specs.LinuxDeviceCgroup{
|
return specs.LinuxDeviceCgroup{
|
||||||
Allow: true,
|
Allow: true,
|
||||||
Type: t,
|
Type: string(d.Type),
|
||||||
Major: &d.Major,
|
Major: &d.Major,
|
||||||
Minor: &d.Minor,
|
Minor: &d.Minor,
|
||||||
Access: d.Permissions,
|
Access: d.Permissions,
|
||||||
|
|
Loading…
Reference in a new issue