Re: [PATCH v2] net: Remove unnecessary cast on void pointer
From: Stephen Hemminger
Date: Sat Apr 01 2017 - 19:48:32 EST
On Wed, 29 Mar 2017 00:35:16 +0530
simran singhal <singhalsimran0@xxxxxxxxx> 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.
>
> Signed-off-by: simran singhal <singhalsimran0@xxxxxxxxx>
Looks good
Reviewed-by: Stephen Hemminger <stephen@xxxxxxxxxxxxxxxxxx>