]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Introduce a local variable for a VSI in the rebuild path
authorKrzysztof Kazimierczak <krzysztof.kazimierczak@intel.com>
Thu, 25 Jul 2019 09:53:57 +0000 (02:53 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 27 Aug 2019 06:18:06 +0000 (23:18 -0700)
commit7f6146a75ecf829609d5ec8fd76934343f044c5a
tree36b332bf90160f5add10ed87925c43751b6c7841
parent19263cdada68cde34598551c95dfa2e136999f8f
ice: Introduce a local variable for a VSI in the rebuild path

When a VSI is accessed inside the ice_for_each_vsi macro in the rebuild
path (ice_vsi_rebuild_all() and ice_vsi_replay_all()), it is referred to
as pf->vsi[i]. Introduce local variables to improve readability.

Signed-off-by: Krzysztof Kazimierczak <krzysztof.kazimierczak@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_main.c