mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
virStorageBackendISCSIGetHostNumber: correctly use virDirOpen
Incorrect conflict resolution in my commit e81de04c1
broke this.
This commit is contained in:
parent
32d0a57812
commit
290f2adf46
@ -100,9 +100,7 @@ virStorageBackendISCSIGetHostNumber(const char *sysfs_path,
|
||||
|
||||
virFileWaitForDevices();
|
||||
|
||||
if (virDirOpen(&sysdir, sysfs_path) < 0)
|
||||
virReportSystemError(errno,
|
||||
_("Failed to opendir path '%s'"), sysfs_path);
|
||||
if (virDirOpen(&sysdir, sysfs_path) < 0) {
|
||||
retval = -1;
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user