port: fix allocation check in ring SWX
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Wed, 7 Apr 2021 10:59:45 +0000 (11:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Apr 2021 17:33:46 +0000 (19:33 +0200)
commitae650ff9ba0cb90e68441538ded08b27bccb1113
treea89ce224df3361759386777c567aa282010d1995
parente4b5b2ba9c10b969f8d5dc91b1ddbf50ee621a66
port: fix allocation check in ring SWX

Fix logically dead code in ring port.

Coverity issue: 369664
Fixes: 77a413017c2d ("port: add ring SWX port")

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_port/rte_swx_port_ring.c