ice: Reduce scope of variable in ice_vsi_cfg_rxqs
authorBrett Creeley <brett.creeley@intel.com>
Thu, 28 Feb 2019 23:25:51 +0000 (15:25 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 2 May 2019 08:05:38 +0000 (01:05 -0700)
commit1553f4f77a495b4e78f7083f1f8341bef6dbe9c7
treeb9ae0c4a9711fa73ed5d9457c72161486af2dd58
parentfe7219fa7c79722d75524e5be9d569eef2ead032
ice: Reduce scope of variable in ice_vsi_cfg_rxqs

Reduce scope of the variable 'err' to inside the for loop instead
of using it as a second looping conditional. Also while here,
improve the debug message if we fail to configure a Rx queue.

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