net/i40e: fix unchecked Tx cleanup error
authorBeilei Xing <beilei.xing@intel.com>
Wed, 12 Feb 2020 12:36:01 +0000 (20:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:13 +0000 (12:42 +0100)
commitba950e62762bd0198e53666ecc2a791767adc137
tree7b78008540e1681d4ba0846c3f0cc61acaa2cf07
parentfe38133c42d846613a41beff49ab0e1b9a3e0e61
net/i40e: fix unchecked Tx cleanup error

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

Coverity issue: 353617
Fixes: 4861cde46116 ("i40e: new poll mode driver")
Cc: stable@dpdk.org
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/i40e/i40e_rxtx.c