[MTHCA] Fixing a warning.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 8 Sep 2008 07:36:56 +0000 (07:36 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 8 Sep 2008 07:36:56 +0000 (07:36 +0000)
signed off by:xalex@mellanox.co.il

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1569 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/mthca_cq.c

index 8455785..7376f0c 100644 (file)
@@ -608,8 +608,8 @@ static inline int mthca_poll_one(struct mthca_dev *dev,
                entry->recv.ud.remote_sl        = cqe->sl_ipok >> 4;\r
                entry->recv.ud.path_bits = (uint8_t)(cqe->g_mlpath & 0x7f);\r
                entry->recv.ud.recv_opt   |= cqe->g_mlpath & 0x80 ? IB_RECV_OPT_GRH_VALID : 0;\r
-               checksum = (u16)(cl_ntoh32(cqe->rqpn) >> 24) |\r
-                               ((cl_ntoh32(cqe->my_ee) >> 16) & 0xff00);\r
+               checksum = (u16)((cl_ntoh32(cqe->rqpn) >> 24) |\r
+                               ((cl_ntoh32(cqe->my_ee) >> 16) & 0xff00));\r
                entry->recv.ud.csum_ok = mthca_ib_ipoib_csum_ok(checksum, cqe->sl_ipok & 1);\r
        }\r
        if (!is_send && cqe->rlid == 0){\r