[02/15] libxl: Remove unused variable in libxl__device_pci_add_xenstore
diff mbox series

Message ID 20190614112444.29980-3-anthony.perard@citrix.com
State New
Headers show
Series
  • Some cleanup of libxl
Related show

Commit Message

Anthony PERARD June 14, 2019, 11:24 a.m. UTC
*device isn't used.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 tools/libxl/libxl_pci.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Ian Jackson Sept. 17, 2019, 4:31 p.m. UTC | #1
Anthony PERARD writes ("[PATCH 02/15] libxl: Remove unused variable in libxl__device_pci_add_xenstore"):
> *device isn't used.

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

Patch
diff mbox series

diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c
index 4ec6872798..67677d7b55 100644
--- a/tools/libxl/libxl_pci.c
+++ b/tools/libxl/libxl_pci.c
@@ -115,7 +115,6 @@  static int libxl__device_pci_add_xenstore(libxl__gc *gc, uint32_t domid, libxl_d
     char *num_devs, *be_path;
     int num = 0;
     xs_transaction_t t = XBT_NULL;
-    libxl__device *device;
     int rc;
     libxl_domain_config d_config;
     libxl_device_pci pcidev_saved;
@@ -149,9 +148,6 @@  static int libxl__device_pci_add_xenstore(libxl__gc *gc, uint32_t domid, libxl_d
     if (!starting)
         flexarray_append_pair(back, "state", GCSPRINTF("%d", XenbusStateReconfiguring));
 
-    GCNEW(device);
-    libxl__device_from_pcidev(gc, domid, pcidev, device);
-
     lock = libxl__lock_domain_userdata(gc, domid);
     if (!lock) {
         rc = ERROR_LOCK_FAIL;