[PATCH] util: virnetdevopenvswitch: Delete unused code

Yan Wang wangyan122 at huawei.com
Wed May 13 02:51:50 UTC 2020


It was never used since commit @57b5e27d3d7 introduced it.

Signed-off-by: Yan Wang <wangyan122 at huawei.com>
---
 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;
 }
 
-- 
2.23.0




More information about the libvir-list mailing list