ice: Cleanup ice_vsi_alloc_q_vectors
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Thu, 6 Feb 2020 09:20:11 +0000 (01:20 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 12 Feb 2020 19:49:04 +0000 (11:49 -0800)
commit3306f79f428e858a80d5eadb974c80a1faa399f3
treeb4a578be60c117840df563ba61d3ee0a0315b3b6
parent19cce2c6f6dc43dd9cd6ba8a9123857192990d50
ice: Cleanup ice_vsi_alloc_q_vectors

1. Remove local variable num_q_vectors and use vsi->num_q_vectors instead
2. Remove local variable pf and pass vsi->back to ice_pf_to_dev

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_base.c