Fix filepath.Join with single arg

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-08-25 16:55:04 +02:00
parent 73857eb8e3
commit f8870b31be
2 changed files with 3 additions and 3 deletions

View File

@ -239,7 +239,7 @@ func newDRMDeviceFilter(logger logger.Interface, devices image.VisibleDevices, d
return nil, fmt.Errorf("failed to determine DRM devices for %v: %v", busID, err)
}
for _, drmDeviceNode := range drmDeviceNodes {
filter[filepath.Join(drmDeviceNode)] = true
filter[drmDeviceNode] = true
}
}

View File

@ -128,9 +128,9 @@ func getFirmwareSearchPaths(logger logger.Interface) ([]string, error) {
standardPaths := []string{
filepath.Join("/lib/firmware/updates/", utsRelease),
filepath.Join("/lib/firmware/updates/"),
"/lib/firmware/updates/",
filepath.Join("/lib/firmware/", utsRelease),
filepath.Join("/lib/firmware/"),
"/lib/firmware/",
}
return append(firmwarePaths, standardPaths...), nil