From 943dfa985df37edcdc4896f93a1691c6bffe83d3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 10 Feb 2024 13:27:10 +0100 Subject: [PATCH] oci: remove named err-return Signed-off-by: Sebastiaan van Stijn --- oci/devices_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oci/devices_linux.go b/oci/devices_linux.go index d559a7c2e2..ed0a140f8a 100644 --- a/oci/devices_linux.go +++ b/oci/devices_linux.go @@ -21,7 +21,7 @@ func deviceCgroup(d *specs.LinuxDevice, permissions string) specs.LinuxDeviceCgr } // DevicesFromPath computes a list of devices and device permissions from paths (pathOnHost and pathInContainer) and cgroup permissions. -func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error) { +func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, _ error) { resolvedPathOnHost := pathOnHost // check if it is a symbolic link