The port2intf variable was set but never used. Signed-off-by: Stephen Hemminger <step...@networkplumber.org> --- app/dumpcap/main.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c index 4751ca26b892..1c47ff851252 100644 --- a/app/dumpcap/main.c +++ b/app/dumpcap/main.c @@ -90,7 +90,6 @@ struct interface { TAILQ_HEAD(interface_list, interface); static struct interface_list interfaces = TAILQ_HEAD_INITIALIZER(interfaces); -static struct interface *port2intf[RTE_MAX_ETHPORTS]; /* Can do either pcap or pcapng format output */ typedef union { @@ -207,7 +206,6 @@ static void add_interface(uint16_t port, const char *name) printf("Capturing on '%s'\n", name); - port2intf[port] = intf; TAILQ_INSERT_TAIL(&interfaces, intf, next); } -- 2.39.0