]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_pipeline/rte_swx_ctl.c
table: relax requirements for entry action data
[dpdk.git] / lib / librte_pipeline / rte_swx_ctl.c
index 2e4538bd096baeea17a529e1f8a93604b8e74706..ca30767ef7c67abe2ea0a1f173e0a831ec700024 100644 (file)
@@ -338,8 +338,7 @@ table_entry_check(struct rte_swx_ctl_pipeline *ctl,
 
                /* action_data. */
                a = &ctl->actions[entry->action_id];
-               CHECK((a->data_size && entry->action_data) ||
-                     (!a->data_size && !entry->action_data), EINVAL);
+               CHECK(!(a->data_size && !entry->action_data), EINVAL);
        }
 
        return 0;