ice: fix static analysis warnings
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 27 Feb 2019 00:35:07 +0000 (16:35 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Mar 2019 15:19:16 +0000 (08:19 -0700)
commit1b5c19c7796c3aa13505a48a1242d32f36c7bc0b
tree2f733d6ccb2c256384091ec3f42045cd68231bb3
parent7eeac889769ae96dbeb2209b816e14b12e0f9f6f
ice: fix static analysis warnings

cppcheck warns "Identical condition '<var>', second condition is always
false". Fix them.

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_common.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_sched.c
drivers/net/ethernet/intel/ice/ice_switch.c