Coverity issue: 384444
Fixes: a62ec90522a ("net/sfc: add port representors infrastructure")
Cc: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru>
Cc: sta...@dpdk.org
Signed-off-by: Ariel Otilibili <otili...@eurecom.fr>
---
 drivers/net/sfc/sfc_repr.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/sfc/sfc_repr.c b/drivers/net/sfc/sfc_repr.c
index c2e5d4eb9e..a0712bf9fb 100644
--- a/drivers/net/sfc/sfc_repr.c
+++ b/drivers/net/sfc/sfc_repr.c
@@ -769,9 +769,7 @@ static void
 sfc_repr_close(struct sfc_repr *sr)
 {
        SFC_ASSERT(sfc_repr_lock_is_locked(sr));
-
        SFC_ASSERT(sr->state == SFC_ETHDEV_CONFIGURED);
-       sr->state = SFC_ETHDEV_CLOSING;
 
        /* Put representor close actions here */
 
-- 
2.47.1

Reply via email to