summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate/config_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-13 06:42:56 -0500
committerGitHub <noreply@github.com>2021-02-13 06:42:56 -0500
commit3ba0afdd0f03195827f46b50757928ead44b1567 (patch)
tree9d2cadfe791ebd5a326cc521560b644f586c575e /pkg/specgen/generate/config_linux.go
parent9d57aa75a5f22296b81cd37abe08660001971c4a (diff)
parent78b419909bdf1eeb4af17fff471b381de91bcf73 (diff)
downloadpodman-3ba0afdd0f03195827f46b50757928ead44b1567.tar.gz
podman-3ba0afdd0f03195827f46b50757928ead44b1567.tar.bz2
podman-3ba0afdd0f03195827f46b50757928ead44b1567.zip
Merge pull request #9342 from Luap99/lint
Enable more golangci-lint linters
Diffstat (limited to 'pkg/specgen/generate/config_linux.go')
-rw-r--r--pkg/specgen/generate/config_linux.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/pkg/specgen/generate/config_linux.go b/pkg/specgen/generate/config_linux.go
index 1290a8eb6..b9f024814 100644
--- a/pkg/specgen/generate/config_linux.go
+++ b/pkg/specgen/generate/config_linux.go
@@ -113,7 +113,6 @@ func DevicesFromPath(g *generate.Generator, devicePath string) error {
// mount the internal devices recursively
if err := filepath.Walk(resolvedDevicePath, func(dpath string, f os.FileInfo, e error) error {
-
if f.Mode()&os.ModeDevice == os.ModeDevice {
found = true
device := fmt.Sprintf("%s:%s", dpath, filepath.Join(dest, strings.TrimPrefix(dpath, src)))