From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 7 Apr 2017 17:27:12 +0200 From: Pablo Neira Ayuso Message-ID: <20170407152712.GA1466@salvia> References: <20170328190516.GA19531@singhal-Inspiron-5558> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170328190516.GA19531@singhal-Inspiron-5558> Subject: Re: [Bridge] [PATCH v2] net: Remove unnecessary cast on void pointer List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: simran singhal Cc: gregkh@linuxfoundation.org, Hideaki YOSHIFUJI , netdev@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org, James Morris , outreachy-kernel@googlegroups.com, coreteam@netfilter.org, netfilter-devel@vger.kernel.org, kadlec@blackhole.kfki.hu, Patrick McHardy , Alexey Kuznetsov , davem@davemloft.net 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.