From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH] dm ioctl: Remove double parentheses Date: Fri, 31 Mar 2017 19:07:33 -0700 Message-ID: <1491012453.27353.25.camel@perches.com> References: <20170316164830.127026-1-mka@chromium.org> <20170401015019.GA13986@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170401015019.GA13986@google.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Matthias Kaehlcke , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com Cc: Michael Davidson , Grant Grundler , linux-kernel@vger.kernel.org, Greg Hackmann , linux-raid@vger.kernel.org, Shaohua Li List-Id: linux-raid.ids On Fri, 2017-03-31 at 18:50 -0700, Matthias Kaehlcke wrote: > El Thu, Mar 16, 2017 at 09:48:30AM -0700 Matthias Kaehlcke ha dit: > > > The extra pair of parantheses is not needed and causes clang to generate > > the following warning: > > > > drivers/md/dm-ioctl.c:1776:11: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] > > if ((cmd == DM_DEV_CREATE_CMD)) { > > ~~~~^~~~~~~~~~~~~~~~~~~~ > > drivers/md/dm-ioctl.c:1776:11: note: remove extraneous parentheses around the comparison to silence this warning > > if ((cmd == DM_DEV_CREATE_CMD)) { > > ~ ^ ~ > > drivers/md/dm-ioctl.c:1776:11: note: use '=' to turn this equality comparison into an assignment > > if ((cmd == DM_DEV_CREATE_CMD)) { There are dozens of these comparisons in the kernel. Are you fixing them all or just this one?