]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c9c9448d329197e9a2dec87d8b9d873e65267be
treecd30af6c6f2d872bcfda4874274fbc0b537b4667
parent31ef4cb80044ce79295e2af8d66ba3dc9d6bd471
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