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

Stephen Hemminger stephen at networkplumber.org
Sat Apr 1 23:48:21 UTC 2017


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

Looks good

Reviewed-by: Stephen Hemminger <stephen at networkplumber.org>


More information about the Bridge mailing list