Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kamal Heib and committed by
Jason Gunthorpe
6112ef62 cbeb7d89

-3
-3
drivers/infiniband/sw/rxe/rxe.c
··· 147 147 148 148 rxe_init_port_param(port); 149 149 150 - if (!port->attr.pkey_tbl_len || !port->attr.gid_tbl_len) 151 - return -EINVAL; 152 - 153 150 port->pkey_tbl = kcalloc(port->attr.pkey_tbl_len, 154 151 sizeof(*port->pkey_tbl), GFP_KERNEL); 155 152