i40e/i40evf: Remove addressof casts to same type
authorJoe Perches <joe@perches.com>
Tue, 25 Mar 2014 04:30:32 +0000 (04:30 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 31 Mar 2014 22:48:02 +0000 (15:48 -0700)
commitb58f2f72797cf45f0e6867f671ff42128b84834b
tree279dce62687e5e8ae4480ec4e32b619ca2e73bdb
parente3e3bfdd1d2ad4ac2020e681f3cb1e172f343810
i40e/i40evf: Remove addressof casts to same type

Using addressof then casting to the original type is pointless,
so remove these unnecessary casts.

Done via coccinelle script:

$ cat typecast.cocci
@@
type T;
T foo;
@@

- (T *)&foo
+ &foo

Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c
drivers/net/ethernet/intel/i40evf/i40e_common.c