]> git.droids-corp.org - dpdk.git/blobdiff - drivers/common/mlx5/mlx5_common_utils.c
common/mlx5: remove unused lcore check
[dpdk.git] / drivers / common / mlx5 / mlx5_common_utils.c
index 775fabd478b98846ac2247d27ec45f78b0185163..58d744b4d4b57929e6a7627708b80cfddf730d1f 100644 (file)
@@ -293,11 +293,9 @@ _mlx5_list_unregister(struct mlx5_list_inconst *l_inconst,
                        l_const->cb_clone_free(l_const->ctx, entry);
                else
                        l_const->cb_remove(l_const->ctx, entry);
-       } else if (likely(lcore_idx != -1)) {
+       } else {
                __atomic_add_fetch(&l_inconst->cache[entry->lcore_idx]->inv_cnt,
                                   1, __ATOMIC_RELAXED);
-       } else {
-               return 0;
        }
        if (!l_const->lcores_share) {
                __atomic_sub_fetch(&l_inconst->count, 1, __ATOMIC_RELAXED);