OSDN Git Service

ice: Suppress false-positive style issues reported by static analyzer
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 16 Apr 2019 17:21:21 +0000 (10:21 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 4 May 2019 21:30:05 +0000 (14:30 -0700)
commitc3a6825e825c73fbb24331b4804a2f589d0985cd
treee4f150280cdb97721ce4bcf7a5e61afd4c99a0bb
parente40c899a64ca6222ea45a045b2d7a09491274163
ice: Suppress false-positive style issues reported by static analyzer

A recent version of cppcheck falsely reports-
    Variable ip.hdr is assigned a value that is never used.

ip is a union so the pointer ip.hdr is actually used when referenced as
ip.v4 and ip.v6.  Silence these false reports when using cppcheck with the
--inline-suppr command-line option.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_txrx.c