[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180725184356.3754-1-rvarsha016@gmail.com>
Date: Wed, 25 Jul 2018 20:43:56 +0200
From: Varsha Rao <rvarsha016@...il.com>
To: Doug Ledford <dledford@...hat.com>, Jason Gunthorpe <jgg@...pe.ca>,
Lukas Bulwahn <lukas.bulwahn@...il.com>,
Nicholas Mc Guire <der.herr@...r.at>,
linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Varsha Rao <rvarsha016@...il.com>
Subject: [PATCH] drivers: infiniband: core: Remove extra parentheses
Remove unnecessary parentheses to fix the clang warning of extraneous
parentheses.
Signed-off-by: Varsha Rao <rvarsha016@...il.com>
---
drivers/infiniband/core/cma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index bff10ab141b0..c200a2e748f0 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -4010,7 +4010,7 @@ static void cma_set_mgid(struct rdma_id_private *id_priv,
memcpy(mgid, &sin6->sin6_addr, sizeof *mgid);
} else if (addr->sa_family == AF_IB) {
memcpy(mgid, &((struct sockaddr_ib *) addr)->sib_addr, sizeof *mgid);
- } else if ((addr->sa_family == AF_INET6)) {
+ } else if (addr->sa_family == AF_INET6) {
ipv6_ib_mc_map(&sin6->sin6_addr, dev_addr->broadcast, mc_map);
if (id_priv->id.ps == RDMA_PS_UDP)
mc_map[7] = 0x01; /* Use RDMA CM signature */
--
2.17.0
Powered by blists - more mailing lists