]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:46:37 +0000 (14:46 +0100)
commitbe2d3003179af99164745d802442d8634d5bd731
tree8d607d6771b72bc6f16e9302b5046b621f83ad32
parent952363cdb6c8ccf7875010c0052ce713d4fb1b9e
RDMA/rxe: Drop pointless checks in rxe_init_ports

BugLink: https://bugs.launchpad.net/bugs/1896824
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/infiniband/sw/rxe/rxe.c