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)
commitfe7219fa7c79722d75524e5be9d569eef2ead032
tree7b165402704da139d8242c1945d021c150c7bcfe
parent85796d6e2fce748fbb59cf98c51b5f2e1bc409ca
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