IB/core: Remove extra parentheses
authorVarsha Rao <rvarsha016@gmail.com>
Wed, 25 Jul 2018 18:43:56 +0000 (20:43 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 25 Jul 2018 20:36:29 +0000 (14:36 -0600)
Remove unnecessary parentheses to fix the clang warning of extraneous
parentheses.

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c

index f2bf997b62cde7ac806c378864e0ab6e79a8bbe1..338df1789884e6996fb621126c37086a2efb2467 100644 (file)
@@ -4030,7 +4030,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 */