IB/mlx5: Simplify code by removing return variable
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 28 Aug 2016 07:58:35 +0000 (10:58 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 2 Sep 2016 18:11:39 +0000 (14:11 -0400)
commitb2a232d21f301d600b02c6f9ccbc9f977331bb39
tree2285ebeeb682186d8ca35dd254f817d9783bede5
parent24be409beede1a7cbe95b1740c4cdade3b6a8187
IB/mlx5: Simplify code by removing return variable

Return variable was set in a line before the
actual return was called in begin_wqe function.

This patch removes such variable and simplifies the code.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c