IB/core: Removed port validity check from ib_get_cached_subnet_prefix
authorAnand Khoje <anand.a.khoje@oracle.com>
Wed, 16 Jun 2021 15:45:07 +0000 (21:15 +0530)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 21 Jun 2021 23:49:32 +0000 (20:49 -0300)
commitc5f8f2c5e5bfd4fd5fc5c413051ad14b7873b1fd
tree63d78204b3f90fe38cb478a962f48b0039d9b7f4
parentbf194997c7319ba968d3f7c47258b4be5f01f81e
IB/core: Removed port validity check from ib_get_cached_subnet_prefix

Removed port validity check from ib_get_cached_subnet_prefix() as this
check is not needed because "port_num" is valid.

Link: https://lore.kernel.org/r/20210616154509.1047-2-anand.a.khoje@oracle.com
Suggested-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Anand Khoje <anand.a.khoje@oracle.com>
Signed-off-by: Haakon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cache.c
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/device.c
drivers/infiniband/core/security.c