]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: future proof some sizeof calls
authorShannon Nelson <shannon.nelson@intel.com>
Fri, 27 Feb 2015 09:18:30 +0000 (09:18 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Mar 2015 12:20:45 +0000 (05:20 -0700)
commitf2e1d015cb61a40993c61975f060f60ca73d58c9
tree6976f204811ef4c97368fed22a339674db1fd6bb
parent0fe01e5fc3a080611aa15587c091b6f112e24f67
i40e: future proof some sizeof calls

Make sure the sizeof() calls are taking the size of the actual struct
that we care about.  By using the pointer variable, we'll always get
the right struct size, even if the variable type changes sometime in
the future.

Change-ID: Id5858f883cf42447365ea3733080d7714f975bce
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c