Correct return code of isAMDGpu()
Also, correct some comments, whitespace.
This commit is contained in:
1 vanhempi
ae7ca83920
commit
53489c1f3d
2 files changed
+7
-2
No files matched your search
@@ -348,7 +348,7 @@ static bool isAMDGPU(std::string dev_path) {
|
||||
fs.open(vend_path);
|
||||
|
||||
if (!fs.is_open()) {
|
||||
return errno;
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t vendor_id;
|
||||
|
||||
Reference in new issue
Block a user