IB/core: Use rdma_is_port_valid()
authorParav Pandit <parav@mellanox.com>
Mon, 19 Mar 2018 05:59:59 +0000 (07:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Mar 2018 17:41:40 +0000 (11:41 -0600)
commit6d5b2047fe62ed83a90f0ecdf1cc9b4ae6fcc974
treee5dc4fd30e77f805df720eedd2cec6d8c4728580
parent958d2c1ba37680b765a089dc374cc199fb61619b
IB/core: Use rdma_is_port_valid()

Use rdma_is_port_valid() which performs port validity check instead of
open coding the same check.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cache.c