[PATCH] util: virnetdevopenvswitch: Delete unused code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Yan Wang <wangyan122@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux