]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Resolve static analysis reported issue
authorBruce Allan <bruce.w.allan@intel.com>
Thu, 28 Feb 2019 23:25:50 +0000 (15:25 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 2 May 2019 08:03:49 +0000 (01:03 -0700)
commitf2459a5db21ad87c7cf186d27814a4883ead9bff
tree7b165402704da139d8242c1945d021c150c7bcfe
parent34e16609fb4b2ed0825a31b6160041c0fd46c3a0
ice: Resolve static analysis reported issue

Static analysis points out the default case in the switch statement in
ice_get_itr_intrl_gran() is an infeasible condition causing the default
case statement to be unreachable.  Remove it and since the function no
longer returns anything but success, change it to just return void and
update the only call to it accordingly.

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