]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: virnetdevopenvswitch: Drop an unused variable @ovs_timeout
authorErik Skultety <eskultet@redhat.com>
Tue, 7 Aug 2018 16:34:51 +0000 (18:34 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 8 Aug 2018 08:07:09 +0000 (10:07 +0200)
Technically, it was never used ever since commit @f4d06ca8fd9 introduced
it, but the fact that we called VIR_FREE on it was enough for Clang to
never complain about it.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virnetdevopenvswitch.c

index 69ae04ee5a9557db788d5c920477d7309b507e8a..9a9435f8af68f680d79a53e52d4818b4f7651c11 100644 (file)
@@ -473,7 +473,6 @@ virNetDevOpenvswitchGetVhostuserIfname(const char *path,
     size_t ntokens = 0;
     int status;
     int ret = -1;
-    VIR_AUTOFREE(char *) ovs_timeout = NULL;
 
     /* Openvswitch vhostuser path are hardcoded to
      * /<runstatedir>/openvswitch/<ifname>