diff options
Diffstat (limited to 'sys/ofed/drivers/infiniband/hw/mthca/mthca_mcg.c')
-rw-r--r-- | sys/ofed/drivers/infiniband/hw/mthca/mthca_mcg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ofed/drivers/infiniband/hw/mthca/mthca_mcg.c b/sys/ofed/drivers/infiniband/hw/mthca/mthca_mcg.c index d4c8105..6274a1c 100644 --- a/sys/ofed/drivers/infiniband/hw/mthca/mthca_mcg.c +++ b/sys/ofed/drivers/infiniband/hw/mthca/mthca_mcg.c @@ -173,13 +173,13 @@ int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) } for (i = 0; i < MTHCA_QP_PER_MGM; ++i) - if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) { + if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1U << 31))) { mthca_dbg(dev, "QP %06x already a member of MGM\n", ibqp->qp_num); err = 0; goto out; - } else if (!(mgm->qp[i] & cpu_to_be32(1 << 31))) { - mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1 << 31)); + } else if (!(mgm->qp[i] & cpu_to_be32(1U << 31))) { + mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1U << 31)); break; } @@ -260,9 +260,9 @@ int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) } for (loc = -1, i = 0; i < MTHCA_QP_PER_MGM; ++i) { - if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) + if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1U << 31))) loc = i; - if (!(mgm->qp[i] & cpu_to_be32(1 << 31))) + if (!(mgm->qp[i] & cpu_to_be32(1U << 31))) break; } |