ice: only use the VF for ICE_VSI_VF in ice_vsi_release
authorBrett Creeley <brett.creeley@intel.com>
Fri, 8 Feb 2019 20:50:36 +0000 (12:50 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 25 Feb 2019 16:56:01 +0000 (08:56 -0800)
commitb751930c6c21c3a6abc447f4f76fa2c28a11cb91
tree072cc4c8c45b8b3570cb0c685662bfd13a5ce45c
parent32a64994dbc3e79250f99802faddc074fa8ce667
ice: only use the VF for ICE_VSI_VF in ice_vsi_release

In ice_vsi_release we are always assigning a value to the local VF
variable. Change this to only be assigned if the VSI is a VF VSI.

Signed-off-by: Brett Creeley <brett.creeley@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