RDMA/rxe: Drop pointless checks in rxe_init_ports
authorKamal Heib <kamalheib1@gmail.com>
Sun, 5 Jul 2020 10:43:10 +0000 (13:43 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 16 Jul 2020 16:57:20 +0000 (13:57 -0300)
commit6112ef62826e91afbae5446d5d47b38e25f47e3f
tree7d8446af1525635008b2b0d21cc02a960db0390d
parentcbeb7d896c0f296451ffa7b67e7706786b8364c8
RDMA/rxe: Drop pointless checks in rxe_init_ports

Both pkey_tbl_len and gid_tbl_len are set in rxe_init_port_param() - so no
need to check if they aren't set.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20200705104313.283034-2-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe.c