From a1127d54b52d76f0bb5e79d5fc973a2c41a8200d Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 10 Nov 2017 14:10:10 +0100 Subject: ipcpd: Fix unused label with netmap for LLC shim When the netmap driver is used for the LLC shim, the label fail_device: was never used, resulting in a compiler error. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/shim-eth-llc/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ipcpd/shim-eth-llc/main.c b/src/ipcpd/shim-eth-llc/main.c index e735b651..4f4c98ea 100644 --- a/src/ipcpd/shim-eth-llc/main.c +++ b/src/ipcpd/shim-eth-llc/main.c @@ -1117,11 +1117,13 @@ static int eth_llc_ipcp_bootstrap(const struct ipcp_config * conf) pthread_cancel(eth_llc_data.mgmt_handler); pthread_join(eth_llc_data.mgmt_handler, NULL); fail_mgmt_handler: -#ifdef __linux__ +#if defined(__linux__) pthread_cancel(eth_llc_data.if_monitor); pthread_join(eth_llc_data.if_monitor, NULL); #endif +#if !defined(HAVE_NETMAP) fail_device: +#endif #if defined(HAVE_NETMAP) nm_close(eth_llc_data.nmd); #elif defined(HAVE_BPF) -- cgit v1.2.3