From: Yan Wang Date: Wed, 13 May 2020 02:51:50 +0000 (+0800) Subject: util: virnetdevopenvswitch: Delete unused code X-Git-Tag: v6.4.0-rc1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=132d6eb9bad09bbe7f6c796a4122095174afc85d;p=thirdparty%2Flibvirt.git util: virnetdevopenvswitch: Delete unused code It was never used since commit 57b5e27d3d7 introduced it. Signed-off-by: Yan Wang Signed-off-by: Ján Tomko Reviewed-by: Ján Tomko --- diff --git a/src/util/virnetdevopenvswitch.c b/src/util/virnetdevopenvswitch.c index f961777411..d16af72bdf 100644 --- a/src/util/virnetdevopenvswitch.c +++ b/src/util/virnetdevopenvswitch.c @@ -491,8 +491,6 @@ virNetDevOpenvswitchGetVhostuserIfname(const char *path, char **ifname) { char *tmpIfname = NULL; - char **tokens = NULL; - size_t ntokens = 0; int status; int ret = -1; g_autoptr(virCommand) cmd = NULL; @@ -524,7 +522,6 @@ virNetDevOpenvswitchGetVhostuserIfname(const char *path, ret = 1; cleanup: - virStringListFreeCount(tokens, ntokens); return ret; }