From bd0c2b358158a5be8a1937bd59f1a9a9458487e6 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 29 Jul 2020 14:50:56 +0200 Subject: [PATCH] oci/deviceCgroup(): remove redundant variable Signed-off-by: Sebastiaan van Stijn --- oci/devices_linux.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,