]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit248f6a1d823866bb44c460a88807c83c8b9477ad
tree451c9c4f6941369beb9d852dfa4c95b26fc27072
parent2c9e6d9dcac125fdf0fa1bce99339033fdfa2165
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