]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 08:46:25 +0000 (10:46 +0200)
commit62057f22ad36d1274e44f481389cd3a176010e64
tree552e6f4be0c989a84a8aeed48253d80e2dab2406
parent557f256d510e3714b1da60b4c0e42bc47459fca1
RDMA/rxe: Drop pointless checks in rxe_init_ports

[ Upstream commit 6112ef62826e91afbae5446d5d47b38e25f47e3f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe.c