virStorageBackendISCSIGetHostNumber: correctly use virDirOpen

Incorrect conflict resolution in my commit e81de04c1 broke this.
This commit is contained in:
Ján Tomko 2016-06-24 14:51:35 +02:00
parent 32d0a57812
commit 290f2adf46

View File

@ -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;
}