Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1614617

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

From Stephen Hemminger <stephen@networkplumber.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] net: Remove unnecessary cast on void pointer
Date 2017-04-02 01:50 +0200
Message-ID <trAWl-Z3-1@gated-at.bofh.it> (permalink)
References <tq4Fc-3He-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Looks good

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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] net: Remove unnecessary cast on void pointer simran singhal <singhalsimran0@gmail.com> - 2017-03-28 21:10 +0200
  Re: [PATCH v2] net: Remove unnecessary cast on void pointer Stephen Hemminger <stephen@networkplumber.org> - 2017-04-02 01:50 +0200
  Re: [PATCH v2] net: Remove unnecessary cast on void pointer Pablo Neira Ayuso <pablo@netfilter.org> - 2017-04-07 17:30 +0200

csiph-web