]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/ipoib: Use min_t() macro instead of min()
authorKamal Heib <kamalheib1@gmail.com>
Wed, 4 Jul 2018 21:52:47 +0000 (00:52 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 9 Jul 2018 18:02:42 +0000 (12:02 -0600)
commit3f160d79558787f1ee3fa1a052b29b4e4e27372e
treecadb22942a8dcb64e8d0533d945523766b3b1c63
parented017a7a6de7d12a9bfb25b8023a559cc2f59588
RDMA/ipoib: Use min_t() macro instead of min()

Use min_t() macro to avoid the casting when using min() macro, also fix
the type of "length" and "wc->byte_len" to be "unsigned int" and
"u32" which is the right type for each one of them.

Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c