Skip to content

Commit 97e1067

Browse files
committed
Use fifoDevice constant instead of p
Signed-off-by: Evan Lezar <[email protected]>
1 parent 139ffec commit 97e1067

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cdi/container-edits_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (d *DeviceNode) fillMissingInfo() error {
6161
d.HostPath = d.Path
6262
}
6363

64-
if d.Type != "" && (d.Major != 0 || d.Type == "p") {
64+
if d.Type != "" && (d.Major != 0 || d.Type == fifoDevice) {
6565
return nil
6666
}
6767

@@ -78,7 +78,7 @@ func (d *DeviceNode) fillMissingInfo() error {
7878
d.Path, d.HostPath, d.Type, deviceType)
7979
}
8080
}
81-
if d.Major == 0 && d.Type != "p" {
81+
if d.Major == 0 && d.Type != fifoDevice {
8282
d.Major = major
8383
d.Minor = minor
8484
}

0 commit comments

Comments
 (0)