render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c480ed
From bf73e16686f339b35637aa6fd401d0ed8d9e191a Mon Sep 17 00:00:00 2001
c480ed
Message-Id: <bf73e16686f339b35637aa6fd401d0ed8d9e191a@dist-git>
c480ed
From: Erik Skultety <eskultet@redhat.com>
c480ed
Date: Tue, 30 Jul 2019 15:30:48 +0200
c480ed
Subject: [PATCH] util: virnetdevopenvswitch: Drop an unused variable
c480ed
 @ovs_timeout
c480ed
MIME-Version: 1.0
c480ed
Content-Type: text/plain; charset=UTF-8
c480ed
Content-Transfer-Encoding: 8bit
c480ed
c480ed
Technically, it was never used ever since commit @f4d06ca8fd9 introduced
c480ed
it, but the fact that we called VIR_FREE on it was enough for Clang to
c480ed
never complain about it.
c480ed
c480ed
Signed-off-by: Erik Skultety <eskultet@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
(cherry picked from commit cc4d44ab31ffb2500cf52081e87b137385ec76e6)
c480ed
c480ed
Prerequisite of: https://bugzilla.redhat.com/show_bug.cgi?id=1721434
c480ed
c480ed
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
c480ed
Message-Id: <a43450d34db47937012358004f45a6a17821883c.1564493409.git.mprivozn@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
---
c480ed
 src/util/virnetdevopenvswitch.c | 1 -
c480ed
 1 file changed, 1 deletion(-)
c480ed
c480ed
diff --git a/src/util/virnetdevopenvswitch.c b/src/util/virnetdevopenvswitch.c
c480ed
index 36c587efdb..0dcd49d40f 100644
c480ed
--- a/src/util/virnetdevopenvswitch.c
c480ed
+++ b/src/util/virnetdevopenvswitch.c
c480ed
@@ -420,7 +420,6 @@ virNetDevOpenvswitchGetVhostuserIfname(const char *path,
c480ed
     size_t ntokens = 0;
c480ed
     int status;
c480ed
     int ret = -1;
c480ed
-    VIR_AUTOFREE(char *) ovs_timeout = NULL;
c480ed
 
c480ed
     /* Openvswitch vhostuser path are hardcoded to
c480ed
      * /<runstatedir>/openvswitch/<ifname>
c480ed
-- 
c480ed
2.22.0
c480ed