i40e: add hw struct local variable
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 16 May 2016 17:26:32 +0000 (10:26 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 27 Jun 2016 22:15:47 +0000 (15:15 -0700)
commit3e25a8f31af1c740c6ba2c7ad74d91830fd630c8
treecd30af6c6f2d872bcfda4874274fbc0b537b4667
parentfb70fabad86d79330c9d70449b09ee88f7a7c22a
i40e: add hw struct local variable

This function uses the i40e_hw struct all over the place, so why doesn't
it keep a pointer to the struct? Add this pointer as a local variable
and use it consistently throughout the function.

Change-ID: I10eb688fe40909433fcb8ac7ac891cef67445d72
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c