net/af_xdp: mark recvfrom return as ignored
authorCiara Loftus <ciara.loftus@intel.com>
Thu, 25 Mar 2021 08:22:09 +0000 (08:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Mar 2021 13:50:04 +0000 (15:50 +0200)
commite66716d52efb09b642b7160cc3aed4d503c5bf3e
tree09881fb80c7c23239b3772963c59fbf032aa2d0f
parent4c670dfaa417bc5604c9c58b505a74e2725acdb2
net/af_xdp: mark recvfrom return as ignored

Coverity complains that the return value of recvfrom() in the AF_XDP
datapath is not checked. We don't care about the return value because in
the case of an error we still return 0 from the receive function to
indicate no packets were received. So to make Coverity happy we cast the
return to 'void'.

Coverity issue: 369671
Fixes: 63e8989fe5a4 ("net/af_xdp: use recvfrom instead of poll syscall")

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c