]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit522e51bc6c68bcb37fc7f39933a2b66f95b256cc
tree7d8446af1525635008b2b0d21cc02a960db0390d
parentdcf5cbbd935685b6dd24cf9dc7695c2fc0e69f89
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: 5deaf88696f1 ("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