Tag: 12f2a47945946731bd2f4a64e4720daaabc95106

chelsio: 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 Signed-off-by: David S. Miller — drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 8 ++++—- 1 file changed, 4 insertions(+), 4 …

Continue reading