net/iavf: fix unchecked Tx cleanup error
authorLeyi Rong <leyi.rong@intel.com>
Mon, 19 Oct 2020 05:42:53 +0000 (13:42 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:24 +0000 (23:24 +0100)
commitfd0dd9b3cfc02b15842092a229be5d3988a79c2a
tree67eff53f1e9cf28db46e04fd929345b4afa108c1
parent164c2001ccc724fd8200442ce6f5abe0fc15faa4
net/iavf: fix unchecked Tx cleanup error

Coverity complains of unchecked return value warning of
iavf_xmit_cleanup, while this cleanup is opportunistic and will not cause
problems if it fails. So instead of checking the return value of
iavf_xmit_cleanup and return in case of cleanup failure, we directly cast
it to void function to make the Coverity happy.

Coverity issue: 363045
Fixes: 02d212ca3125 ("net/iavf: rename remaining avf strings")
Cc: stable@dpdk.org
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_rxtx.c