Fix variable self assignment in rte_ml_devinit.
Issue reported by coverity scan.

Coverity issue: 383652
Fixes: ea80eafbd4d8 ("mldev: add PMD functions")

Signed-off-by: Srikanth Yalavarthi <syalavar...@marvell.com>
---
 lib/mldev/rte_mldev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/mldev/rte_mldev.c b/lib/mldev/rte_mldev.c
index eeddb8e874..50ebeb1bfe 100644
--- a/lib/mldev/rte_mldev.c
+++ b/lib/mldev/rte_mldev.c
@@ -186,7 +186,6 @@ rte_ml_dev_init(size_t dev_max)
        }
 
        ml_dev_globals.max_devs = dev_max;
-       ml_dev_globals.devs = ml_dev_globals.devs;
 
        return 0;
 }
-- 
2.17.1

Reply via email to