render / rpms / libvirt

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