]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
scsi: Remove unused 'type_path' in processLU
authorJohn Ferlan <jferlan@redhat.com>
Wed, 1 Apr 2015 12:45:11 +0000 (08:45 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 2 Apr 2015 12:46:30 +0000 (08:46 -0400)
Seems to be a remnant that was never cleaned up from original submit...

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend_scsi.c

index 66e0846cc6dfe615027b584b597ec3869a5314cf..2a3e1e489616e924175ef8f3f3ce404b8fc8c95f 100644 (file)
@@ -372,7 +372,6 @@ processLU(virStoragePoolObjPtr pool,
           uint32_t target,
           uint32_t lun)
 {
-    char *type_path = NULL;
     int retval = -1;
     int device_type;
     char *block_device = NULL;
@@ -417,8 +416,6 @@ processLU(virStoragePoolObjPtr pool,
     VIR_DEBUG("Created new storage volume for %u:%u:%u:%u successfully",
               host, bus, target, lun);
 
-    VIR_FREE(type_path);
-
  out:
     VIR_FREE(block_device);
     return retval;