[libvirt] [PATCH] virt-aa-helper: Drop unused variable in verify_xpath_context()

Michal Privoznik posted 1 patch 4 years, 2 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/40a65ab4a98da1ed03ed8d871571828af9c08b8d.1578412671.git.mprivozn@redhat.com
src/security/virt-aa-helper.c | 1 -
1 file changed, 1 deletion(-)
[libvirt] [PATCH] virt-aa-helper: Drop unused variable in verify_xpath_context()
Posted by Michal Privoznik 4 years, 2 months ago
After one of previous commits (v5.10.0-524-gce56408e5f) there is
a variable left unused in verify_xpath_context() which breaks the
build.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---

Pushed under trivial and build breaker rules.

 src/security/virt-aa-helper.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index e01ec12d09..3ce58c8a6c 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -541,7 +541,6 @@ valid_path(const char *path, const bool readonly)
 static int
 verify_xpath_context(xmlXPathContextPtr ctxt)
 {
-    int rc = -1;
     char *tmp = NULL;
 
     if (!ctxt) {
-- 
2.24.1

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