OSDN Git Service

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)
commit4425e0531c433e3a9414d09c48b82a0f372978b2
tree36b332bf90160f5add10ed87925c43751b6c7841
parentdc67039b3d1159f8feba34e6fdb798603505d5d6
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