Re: [PATCH v2] net: Remove unnecessary cast on void pointer

From: Pablo Neira Ayuso
Date: Fri Apr 07 2017 - 11:27:37 EST


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.