On Wed, 29 Mar 2017 00:35:16 +0530
simran singhal <singhalsimr...@gmail.com> 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 <singhalsimr...@gmail.com>

Looks good

Reviewed-by: Stephen Hemminger <step...@networkplumber.org>

Reply via email to