[Bridge] [PATCH v2] net: Remove unnecessary cast on void pointer
Pablo Neira Ayuso
pablo at netfilter.org
Fri Apr 7 15:27:12 UTC 2017
On Wed, Mar 29, 2017 at 12:35:16AM +0530, simran singhal wrote:
> The following Coccinelle script was used to detect this:
> @r@
> expression x;
> void* e;
> type T;
> identifier f;
> @@
> (
> *((T *)e)
> |
> ((T *)x)[...]
> |
> ((T*)x)->f
> |
>
> - (T*)
> e
> )
>
> Unnecessary parantheses are also remove.
Applied, thanks.
More information about the Bridge
mailing list