Skip to content

Commit

Permalink
[R550 driver support] add fallback logic to device.Exists(name)
Browse files Browse the repository at this point in the history
Signed-off-by: Tariq Ibrahim <[email protected]>
  • Loading branch information
tariq1890 committed Feb 27, 2024
1 parent e64b723 commit f80f4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/info/proc/devices/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (d devices) Count() int {

// Exists checks if a Device with a given name exists or not
func (d devices) Exists(name Name) bool {
_, exists := d[name]
_, exists := d.Get(name)
return exists
}

Expand Down

0 comments on commit f80f4c4

Please sign in to comment.