Tag: b58f2f72797cf45f0e6867f671ff42128b84834b

i40e/i40evf: Remove addressof casts to same type

Author: Joe Perches <joe@perches.com> 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 Tested-by: Kavindya Deegala Signed-off-by: Jeff Kirsher — drivers/net/ethernet/intel/i40e/i40e_common.c | 4 ++– drivers/net/ethernet/intel/i40evf/i40e_common.c | 3 +– …

Continue reading