Fix sysfs write operations

[ROCm/amdsmi commit: 4771996d99]
This commit is contained in:
Chris Freehill committed 2019-02-25 15:14:46 -06:00
1 parent 5f5b053e29
commit 050959ffe3
1 file changed
+4 -3
+4 -3
View File
@@ -129,9 +129,10 @@ int Device::openSysfsFileStream(DevInfoTypes type, T *fs, bool write) {
if (env_->path_DRM_root_override && type == env_->enum_override) {
sysfs_path = env_->path_DRM_root_override;
}
if (write) {
sysfs_path += ".write";
if (write) {
sysfs_path += ".write";
}
}
sysfs_path += "/device/";