From 132d6eb9bad09bbe7f6c796a4122095174afc85d Mon Sep 17 00:00:00 2001 From: Yan Wang Date: Wed, 13 May 2020 10:51:50 +0800 Subject: [PATCH] util: virnetdevopenvswitch: Delete unused code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/util/virnetdevopenvswitch.c | 3 --- 1 file changed, 3 deletions(-) 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; }