]> 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)
commit2df97712ad59c5284d3d5bd45c4f12c32843bb07
tree7b165402704da139d8242c1945d021c150c7bcfe
parentbda69a7a6e65b0ef703215d22c4433c9b12fa8ba
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