[libvirt] [PATCH] tests: virpcimock: remove unused variable 'devid'

Ján Tomko posted 1 patch 12 weeks ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/ba3ed24635b795aa237b4c8ebdc717c4dc84648f.1566206936.git.jtomko@redhat.com
tests/virpcimock.c | 1 -
1 file changed, 1 deletion(-)

[libvirt] [PATCH] tests: virpcimock: remove unused variable 'devid'

Posted by Ján Tomko 12 weeks ago
virpcimock.c:685:26: error: unused variable 'devid' [-Werror,-Wunused-variable]
    VIR_AUTOFREE(char *) devid = NULL;
                         ^

Fixes: 76b42294380d40282ed29560e4ae4a7491b9df05

Signed-off-by: Ján Tomko <jtomko@redhat.com>
---
Pushed as a trivial build fix.

 tests/virpcimock.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/virpcimock.c b/tests/virpcimock.c
index 09a6c648af..ca6cc060fd 100644
--- a/tests/virpcimock.c
+++ b/tests/virpcimock.c
@@ -682,7 +682,6 @@ pci_driver_find_by_path(const char *path)
 static struct pciDriver *
 pci_driver_find_by_driver_override(struct pciDevice *dev)
 {
-    VIR_AUTOFREE(char *) devid = NULL;
     VIR_AUTOFREE(char *) path = NULL;
     char tmp[32];
     size_t i;
-- 
2.20.1

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