[libvirt PATCH 11/11] tests: nodedev: remove unused variable

Jonathon Jongsma posted 11 patches 4 years, 10 months ago
There is a newer version of this series
[libvirt PATCH 11/11] tests: nodedev: remove unused variable
Posted by Jonathon Jongsma 4 years, 10 months ago
This variable was leftover from previous changes but is no longer used.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
---
 tests/nodedevmdevctltest.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/nodedevmdevctltest.c b/tests/nodedevmdevctltest.c
index 3a53254195..b2507e1567 100644
--- a/tests/nodedevmdevctltest.c
+++ b/tests/nodedevmdevctltest.c
@@ -57,7 +57,6 @@ testMdevctlCmd(virMdevctlCommand cmd_type,
                const char *jsonfile)
 {
     g_autoptr(virNodeDeviceDef) def = NULL;
-    virNodeDeviceObjPtr obj = NULL;
     g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
     const char *actualCmdline = NULL;
     int ret = -1;
@@ -113,7 +112,6 @@ testMdevctlCmd(virMdevctlCommand cmd_type,
 
  cleanup:
     virCommandSetDryRun(NULL, NULL, NULL);
-    virNodeDeviceObjEndAPI(&obj);
     return ret;
 }
 
-- 
2.26.3