RDMA/nes: Rewrite expression to avoid undefined semantics
authorRoland Dreier <rolandd@cisco.com>
Wed, 14 Jul 2010 20:29:21 +0000 (13:29 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 14 Jul 2010 20:29:21 +0000 (13:29 -0700)
commitea9f3bc6d1d8e2c56225e5be912d035b04740682
treeed02e0e5ea405eef1605ae486371619be010606b
parent589643be6693c46fbc54bae77745f336c8ed4bcc
RDMA/nes: Rewrite expression to avoid undefined semantics

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 <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_hw.c