Re: [PATCH net-next] chelsio: Remove addressof casts to same type

From: David Miller
Date: Wed Mar 26 2014 - 15:47:06 EST


From: Joe Perches <joe@xxxxxxxxxxx>
Date: Mon, 24 Mar 2014 10:45:12 -0700

> 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@xxxxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/