The line "ovs_stt_cleanup_module();" was unreachable.
Found using static analysis tools.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
Co-authored-by: Yifeng Sun <[email protected]>
---
v2: Remove unreachable code only.
---
 datapath/vport.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/datapath/vport.c b/datapath/vport.c
index 28ddb865c..55f40255b 100644
--- a/datapath/vport.c
+++ b/datapath/vport.c
@@ -97,7 +97,6 @@ int ovs_vport_init(void)
                goto err_stt;
 
        return 0;
-       ovs_stt_cleanup_module();
 err_stt:
        vxlan_cleanup_module();
 err_vxlan:
-- 
2.16.1.windows.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to