summaryrefslogtreecommitdiffstats
path: root/drivers/net/fjes/fjes.h
diff options
context:
space:
mode:
authorKrzysztof Kazimierczak <krzysztof.kazimierczak@intel.com>2019-12-12 03:13:07 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2020-01-03 16:08:33 -0800
commit91125399345a3e28876f707b32d068c308b1e590 (patch)
tree37664cc942eeadcf4f2d35b7fcc135d79ac0b5ee /drivers/net/fjes/fjes.h
parent65bb559b6c11dfe3311d1b77ba5a4b8b34a3ec75 (diff)
downloadblackbird-op-linux-91125399345a3e28876f707b32d068c308b1e590.tar.gz
blackbird-op-linux-91125399345a3e28876f707b32d068c308b1e590.zip
ice: Suppress Coverity warnings for xdp_rxq_info_reg
Coverity reports some of the calls to xdp_rxq_info_reg() as potential issues, because the driver does not check its return value. However, those calls are wrapped with "if (!xdp_rxq_info_is_reg(&ring->xdp_rxq))" and this check alone is enough to be sure that the function will never fail. All possible states of xdp_rxq_info are: - NEW, - REGISTERED, - UNREGISTERED, - UNUSED. The driver won't mark a queue as UNUSED under no circumstance, so the return value can be ignored safely. Add comments for Coverity right above calls to xdp_rxq_info_reg() to suppress the warnings. Signed-off-by: Krzysztof Kazimierczak <krzysztof.kazimierczak@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/fjes/fjes.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud