ice: fix the divide by zero issue
authorKiran Patil <kiran.patil@intel.com>
Wed, 27 Feb 2019 00:35:10 +0000 (16:35 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Mar 2019 15:19:17 +0000 (08:19 -0700)
commit60dcc39ea338dbc9d33dad8f788320950f85e0f3
tree172f72febcacf500b71193c9383f5c878360f126
parent5743020d37d7e92c24c0a5d506989bdfacfddde4
ice: fix the divide by zero issue

Static analysis flagged a potential divide by zero error because
vsi->num_rxq can become zero in certain condition and it is used as
divisor.

Signed-off-by: Kiran Patil <kiran.patil@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_lib.c