IB/mthca: Convert to use be16_add_cpu()
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 12 Feb 2008 23:06:08 +0000 (00:06 +0100)
committerRoland Dreier <rolandd@cisco.com>
Wed, 13 Feb 2008 15:47:47 +0000 (07:47 -0800)
commit5163dc1a645bc9ed7984fa484f1a77378c166d23
tree986189b025cacec7e736dae41de4737e05b76df4
parent8704e9a8790cc9e394198663c1c9150c899fb9a2
IB/mthca: Convert to use be16_add_cpu()

replace:

big_endian_variable = cpu_to_beX(beX_to_cpu(big_endian_variable) +
expression_in_cpu_byteorder);

with:

beX_add_cpu(&big_endian_variable, expression_in_cpu_byteorder);

Generated with a semantic patch.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cq.c