Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp24806imm; Fri, 21 Sep 2018 09:05:40 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbg64b35S6Wrij9pdWhxSwC1DLVDxrGuTxUb/61ddKEiEV0NPBp5wN0Kh7q4//kjuwmM6Gt X-Received: by 2002:a65:60cf:: with SMTP id r15-v6mr42477559pgv.41.1537545940837; Fri, 21 Sep 2018 09:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537545940; cv=none; d=google.com; s=arc-20160816; b=uz0Ae0G5Bwz/JG69nEb4JPvC5qDpPwzLhncXL03svyQ/Wamww+UuR7kfvas3UVfl7G 6qa/QQsrqrUqOE6S85NWeH1Pfp22hB/zuOZfFz3rS5RUTZMQp4ydUgABg8z7CXtJ/x2I HN7fE2zswX6p/TFVL26ViEPm7jCXyc1Szxl3KbD8nTjid+HcnSNtgzHLK7gbap8j6CB3 8nJyuNskY6ioJJBBWJUUO8HfSZ6EZ+fR1G2D+dxuKuyrIc2q+gfqVpMzKstcgDTLUCmb sw3VRQPnpzysY5b1m/cj9rDxuuWc/p6CdVNOazU5HOp0wzL2+zOJDW8WVq+gq1rBDUau MFXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:date:cc:to:from:subject:message-id; bh=7KvmlFn0dkUE5wRVZHw5C6wBpEGL8hTdkHJu0wggiKM=; b=umC9hUls7S5RaaIY96uJoNlWua9ZroNvJNlEMpaVKz/NROoaWJHapIFDUkZOBPLCPl sIuQJr3WQysABbrleyAcX1XHh2y57Xi012heSZ0LYy62SS2UHldprEvmzuoDo0lDEk6Q ITbWW88cBboFaydCdGHFXBT6iwZk0XzLWrIbUWKJCLodVb+ockkRShzgYsiYtVPMsmtZ ZlPTSYa/biC/HxqFrjUDGsmuk19Zm5lYFAE8i7BISIT3UYrRdoX7P9COWJ9DUd7f8amj fKfzv+WqcNq6Oqo2nnR2Fi2S2HKx/VyfFkTlVJh+s9NopDer1XbMO+bj2GC0f9iwm2oK QNXQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si27178285pgj.688.2018.09.21.09.05.12; Fri, 21 Sep 2018 09:05:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390627AbeIUVxy (ORCPT + 99 others); Fri, 21 Sep 2018 17:53:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53984 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728221AbeIUVxy (ORCPT ); Fri, 21 Sep 2018 17:53:54 -0400 Received: from smtp.corp.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4CA083091D6F; Fri, 21 Sep 2018 16:04:22 +0000 (UTC) Received: from haswell-e.nc.xsintricity.com (ovpn-112-17.rdu2.redhat.com [10.10.112.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2C3806C00B; Fri, 21 Sep 2018 16:04:21 +0000 (UTC) Message-ID: <6bf94546954c509c537603514f0c4c6d5c927419.camel@redhat.com> Subject: Re: [PATCH] IB/nes: Remove unnecessary parentheses From: Doug Ledford To: Nathan Chancellor , Faisal Latif , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers Date: Fri, 21 Sep 2018 12:04:19 -0400 In-Reply-To: <20180920032956.14360-1-natechancellor@gmail.com> References: <20180920032956.14360-1-natechancellor@gmail.com> Organization: Red Hat, Inc. Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-hhNbv5TVhewKcsoeICF7" Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 21 Sep 2018 16:04:22 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-hhNbv5TVhewKcsoeICF7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2018-09-19 at 20:29 -0700, Nathan Chancellor wrote: > Clang warns when more than one set of parentheses are used in single > conditional statements. >=20 > drivers/infiniband/hw/nes/nes_hw.c:1446:27: warning: equality comparison > with extraneous parentheses [-Wparentheses-equality] > } while ((temp_phy_data2 =3D=3D temp_phy_data)); > ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ > drivers/infiniband/hw/nes/nes_hw.c:1446:27: note: remove extraneous > parentheses around the comparison to silence this warning > } while ((temp_phy_data2 =3D=3D temp_phy_data)); > ~ ^ ~ > drivers/infiniband/hw/nes/nes_hw.c:1446:27: note: use '=3D' to turn this > equality comparison into an assignment > } while ((temp_phy_data2 =3D=3D temp_phy_data)); > ^~ > =3D >=20 > Remove the unnecessary parentheses to silence this warning. >=20 > Reported-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor Applied to for-next, thanks. --=20 Doug Ledford GPG KeyID: B826A3330E572FDD Key fingerprint =3D AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD --=-hhNbv5TVhewKcsoeICF7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEErmsb2hIrI7QmWxJ0uCajMw5XL90FAlulFoMACgkQuCajMw5X L92ZHxAAl4bUiOAlp+UZAD7+BPdUW6u7EvSDU1zaSxjo5ZyBbiH7kdoMezMCYd8+ CaPsk7ZMu/JnGDyrzx91SIe6BYwmytP2tql2D0YdhyM78uW5v/XoQqWbcf9R6XJ1 0g0+NGmkFTi0ujrJK13tBPl6nPrHSvgdYD/iw01lODfOovUMzB4bGV3IVLP0Bsbt GsZHwuw9p0hfJm+oPLCpI6OOT5ptUZGmRT8qX7ux2zyQlkRdzGgr523MZqVf4xdL lDCi7HzIV+140Tl8Fbmp9uvHNUw2v0dXDfPtk4pMKlS8EFc7BxJAz/e0gwIfwfDb Lr2TUtH5SMZgJLCftM0ZyFy86T3b8OrKjz97bZi/ERphvpFd7t5OSBBYTe3yfVry JH4cIe9eKGnUUxSM37X20dQSunyC9mkFqga5OV6IG+QtSJYkx1BUjtVT2DhqxUKy XI+MmUM9MFdagxfPexTWX7lJZks/9AcN6bnt4IPj53d7mLlbG+RLvbpkm+vrXDqu +XtPjpwZJ/8OMZ/FEKMuh9fXc1Y6oajKHrp8Ib1yqdqiTPbnkglgZqPxXXObelkw 3ADApIKBxNV/dWeXlGzLrcxzzhtP0GwLxnauKKQ7H08DuksfKZyys7MeEgsS32nm 9csccdmxoIOjlJfGMz9fN8i7WvJYWEt77lKO6Xccpabmi+/1yRk= =hT0y -----END PGP SIGNATURE----- --=-hhNbv5TVhewKcsoeICF7--