IB/mlx4: Use __set_data_seg() in mlx4_ib_post_recv()
authorRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:05 +0000 (19:59 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:05 +0000 (19:59 -0700)
commit2242fa4f04d670f02efb43ec537d677edc220880
treea3fc501a86dbbb752201b97cf963703bd01d0aa4
parenteaf559bf566f76887533c077d425adce847f06c8
IB/mlx4: Use __set_data_seg() in mlx4_ib_post_recv()

Use a __set_data_seg() helper in mlx4_ib_post_recv() too; in addition
to making the code easier to read, this also allows gcc to generate
better code -- on x86_64:

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-8 (-8)
function                                     old     new   delta
mlx4_ib_post_recv                            359     351      -8

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c