[PATCH 07/11] qemuDomainNamespaceSetupDisk: Drop useless @src variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since its introduction in 81df21507bef9 this variable was never
used.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/qemu/qemu_domain.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 067b7a42f..8ec9601d2 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -7899,7 +7899,6 @@ qemuDomainNamespaceSetupDisk(virQEMUDriverPtr driver,
                              virDomainDiskDefPtr disk)
 {
     virStorageSourcePtr next;
-    const char *src = NULL;
     struct stat sb;
     int ret = -1;
 
@@ -7914,14 +7913,14 @@ qemuDomainNamespaceSetupDisk(virQEMUDriverPtr driver,
 
         if (stat(next->path, &sb) < 0) {
             virReportSystemError(errno,
-                                 _("Unable to access %s"), src);
+                                 _("Unable to access %s"), next->path);
             goto cleanup;
         }
 
         if (!S_ISBLK(sb.st_mode)) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                            _("Disk source %s must be a block device"),
-                           src);
+                           next->path);
             goto cleanup;
         }
 
-- 
2.11.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux