The default switch case ends with a goto; meaning these instructions are
never reached.

Coverity issue: 121742
Fixes: 19b64c6ac3 ("net/sfc/base: import libefx base")
Signed-off-by: Ariel Otilibili <otili...@eurecom.fr>
--
Cc: sta...@dpdk.org
Cc: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru>
---
 drivers/common/sfc_efx/base/efx_mon.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/common/sfc_efx/base/efx_mon.c 
b/drivers/common/sfc_efx/base/efx_mon.c
index ee449ef5eb..5706171abd 100644
--- a/drivers/common/sfc_efx/base/efx_mon.c
+++ b/drivers/common/sfc_efx/base/efx_mon.c
@@ -80,9 +80,6 @@ efx_mon_init(
                goto fail2;
        }
 
-       emp->em_emop = emop;
-       return (0);
-
 fail2:
        EFSYS_PROBE(fail2);
 
-- 
2.47.1

Reply via email to