RDMA/mlx4: Properly annotate link layer variable
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 17 Aug 2017 12:50:54 +0000 (15:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 20:44:48 +0000 (16:44 -0400)
commit17bf1ad2e80db7c9bdafec9c2da72389247194e9
tree451c9c4f6941369beb9d852dfa4c95b26fc27072
parent84305d71d6ca9a2e6a33d9b403639f1cdeeee846
RDMA/mlx4: Properly annotate link layer variable

The rdma_port_get_link_layer() returns enum rdma_link_layer as
a return value, hence it is better to store the return value in
specially annotated variable and not in int.

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