From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932178AbdDDRsY (ORCPT ); Tue, 4 Apr 2017 13:48:24 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:57416 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755208AbdDDRsV (ORCPT ); Tue, 4 Apr 2017 13:48:21 -0400 Date: Tue, 4 Apr 2017 13:48:16 -0400 From: Simon Horman To: Arushi Singhal Cc: wensong@linux-vs.org, Julian Anastasov , Pablo Neira Ayuso , Jozsef Kadlecsik , davem@davemloft.net, netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: Re: [PATCH] net: netfilters: Remove unnecessary parenthesis Message-ID: <20170404174816.GC7257@verge.net.au> References: <20170328132648.GA6644@arushi-HP-Pavilion-Notebook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170328132648.GA6644@arushi-HP-Pavilion-Notebook> Organisation: Horms Solutions BV User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 28, 2017 at 06:56:48PM +0530, Arushi Singhal wrote: > Rmoved parentheses on the right hand side of assignment, as they are > not required. The following coccinelle script was used to fix this > issue: > > @@ > local idexpression id; > expression e; > @@ > > id = > -( > e > -) > > Signed-off-by: Arushi Singhal > --- > net/netfilter/ipvs/ip_vs_proto_tcp.c | 2 +- grep seems to find some other instances of this problem for IPVS. I would prefer if all of them were fixed. $ grep -n "= *(.*);" net/netfilter/ipvs/* After some manual filtering I see net/netfilter/ipvs/ip_vs_ctl.c:113: nomem = (availmem < ipvs->sysctl_amemthresh); net/netfilter/ipvs/ip_vs_ctl.c:279: ahash ^= ((size_t) ipvs >> 8); net/netfilter/ipvs/ip_vs_proto_tcp.c:490: int on = (flags & 1); /* secure_tcp */ net/netfilter/ipvs/ip_vs_proto_tcp.c:498: pd->tcp_state_table = (on ? tcp_states_dos : tcp_states); net/netfilter/ipvs/ip_vs_sync.c:719: s->v4.type = (cp->af == AF_INET6 ? STYPE_F_INET6 : 0); net/netfilter/ipvs/ip_vs_sync.c:948: cp->timeout = (3*60*HZ) As mentioned elsewhere: If you would like me to pick up patches for IPVS then please post patches that only update IPVS files. I'm also happy for Pablo to pick up patches that include both IPVS and non-IPVS Netfilter updates of this nature. Pablo can offer his own guidance here.