Change code like

        x = expr(++x)

that assigns to x twice without a sequence point in between to the
intended (and well-defined)

        x = expr(x + 1)

Signed-off-by: Roland Dreier <rola...@cisco.com>
---
I'll queue this for 2.6.36 unless someone objects.

 drivers/infiniband/hw/nes/nes_hw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/hw/nes/nes_hw.c 
b/drivers/infiniband/hw/nes/nes_hw.c
index 57874a1..f41d890 100644
--- a/drivers/infiniband/hw/nes/nes_hw.c
+++ b/drivers/infiniband/hw/nes/nes_hw.c
@@ -1970,7 +1970,7 @@ void nes_destroy_nic_qp(struct nes_vnic *nesvnic)
                        dev_kfree_skb(
                                nesvnic->nic.tx_skb[nesvnic->nic.sq_tail]);
 
-               nesvnic->nic.sq_tail = (++nesvnic->nic.sq_tail)
+               nesvnic->nic.sq_tail = (nesvnic->nic.sq_tail + 1)
                                        & (nesvnic->nic.sq_size - 1);
        }
 
-- 
1.7.1.1


-- 
Roland Dreier <rola...@cisco.com> || For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to