]> xenbits.xensource.com Git - libvirt.git/commitdiff
virStorageBackendISCSIGetHostNumber: correctly use virDirOpen
authorJán Tomko <jtomko@redhat.com>
Fri, 24 Jun 2016 12:51:35 +0000 (14:51 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 24 Jun 2016 12:51:35 +0000 (14:51 +0200)
Incorrect conflict resolution in my commit e81de04c1 broke this.

src/storage/storage_backend_iscsi.c

index 4a16d2b7e3bf420c4416f07d73cd139dc1bd9af4..98d114110ca78082bebe8076272c252f94a39d29 100644 (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;
     }