Received: by 10.213.65.68 with SMTP id h4csp703060imn; Wed, 28 Mar 2018 11:12:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+byF3okxAAzGtuOKTV4P+UWvQ0tX7RgBMWFm94ry0hhL1kt4PriqkdfgcoFIPQr2RXZVID X-Received: by 10.98.194.133 with SMTP id w5mr3812790pfk.6.1522260752734; Wed, 28 Mar 2018 11:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522260752; cv=none; d=google.com; s=arc-20160816; b=yJp21AuLcn3rNitX5guUl0DXBzGc2toAyJ7DS2qD7l1gGVmfRlgrnbc/D5fb16fJcc FW3fz60+CO9m0K8Hwt8cjXZBZBehhM+eP4kQjITQpe76khcD1HDoO8fHOT3VFDAtyVXt mSgZ/ygQ4cl1cPG/Yn9lnYa2DMNjeQQKL/DbWQnju9WN9Uw0yd84VXiFxNhTPt7G/d6H ZZBZcwPCJI3x8d2jwlOmK+1C6Tj6pkB6tgDWxsvJlPYtsVCxXi/TML4d5lO4qk8EEWEM 9a1stJIohHRPlWhT15KmwXy25o2iG/vbx/tR2wtg7HMSFhdQcQrdnZq6zRip+CGmQI/O 8jww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=+MZs+FngStOUrMMXGMYYNKvsnML9aXHdSqR4gdryBUI=; b=GF7C3s/onGXEl/DMXNxoaK1mcJ13nI/MabfxXFJ0ePzBOoekycb3mh0YlMEv+R6f2i Ys9TKozr8zfpvbnpf7Gf8+0QlKxJOgZU7U7Mq1AzS8Qt2HUW75AABkVDzY70y1t1qw54 rtRfL/gkJU1WUN4k6ABsHZx5SVdHSbK++A6iL8qmns6wUEObV3hqQRXetar3I1cyU28A WaOYDThmljAnaS/92FG9eeuHdz8ZSfsCUv8pIFpQu4cMItvfEkZT12dvvfbQBEmBhuHV HIysv4Wy3TFrWpSi2maTkF+ffC2yLJ74CFOXwzXbJyinJZq7JDJvqvfbnMtRaglbJGlI r8kQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2-v6si3890628plz.588.2018.03.28.11.12.17; Wed, 28 Mar 2018 11:12:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753032AbeC1SLW (ORCPT + 99 others); Wed, 28 Mar 2018 14:11:22 -0400 Received: from smtprelay0097.hostedemail.com ([216.40.44.97]:57527 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752318AbeC1SLU (ORCPT ); Wed, 28 Mar 2018 14:11:20 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id BCBC9837F24A; Wed, 28 Mar 2018 18:11:19 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:960:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1537:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3866:3868:4321:5007:6119:10004:10400:10848:11232:11658:11914:12048:12740:12760:12895:13069:13311:13357:13439:14659:21080:21627:30017:30054:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:21,LUA_SUMMARY:none X-HE-Tag: power92_62b67b7a7d700 X-Filterd-Recvd-Size: 1251 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Wed, 28 Mar 2018 18:11:18 +0000 (UTC) Message-ID: <1522260676.12357.121.camel@perches.com> Subject: Re: [PATCH] crypto: cavium: zip: Remove unnecessary parentheses From: Joe Perches To: Varsha Rao , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: cocci Date: Wed, 28 Mar 2018 11:11:16 -0700 In-Reply-To: <20180328175736.17360-1-rvarsha016@gmail.com> References: <20180328175736.17360-1-rvarsha016@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-03-28 at 23:27 +0530, Varsha Rao wrote: > This patch fixes the clang warning of extraneous parentheses, with the > following coccinelle script. > > @@ > identifier i; > constant c; > @@ > ( > -((i == c)) > +i == c > > > > -((i <= c)) > +i <= c Why just the "==" and "<=" cases? Why not "<", ">" and ">=" too? Why not expression instead of constant?