mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
RDMA/rxe: Drop pointless checks in rxe_init_ports
[ Upstream commit6112ef6282] 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:8700e3e7c4("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>
This commit is contained in:
parent
e549e44694
commit
4b97eeb917
|
|
@ -163,9 +163,6 @@ static int rxe_init_ports(struct rxe_dev *rxe)
|
|||
|
||||
rxe_init_port_param(port);
|
||||
|
||||
if (!port->attr.pkey_tbl_len || !port->attr.gid_tbl_len)
|
||||
return -EINVAL;
|
||||
|
||||
port->pkey_tbl = kcalloc(port->attr.pkey_tbl_len,
|
||||
sizeof(*port->pkey_tbl), GFP_KERNEL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user