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: Return void from rxe_init_port_param()

The return value from rxe_init_port_param() is always 0 - change it to be
void.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20200705104313.283034-3-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
9d576eac 6112ef62

+1 -3
+1 -3
drivers/infiniband/sw/rxe/rxe.c
··· 111 111 } 112 112 113 113 /* initialize port attributes */ 114 - static int rxe_init_port_param(struct rxe_port *port) 114 + static void rxe_init_port_param(struct rxe_port *port) 115 115 { 116 116 port->attr.state = IB_PORT_DOWN; 117 117 port->attr.max_mtu = IB_MTU_4096; ··· 134 134 port->attr.phys_state = RXE_PORT_PHYS_STATE; 135 135 port->mtu_cap = ib_mtu_enum_to_int(IB_MTU_256); 136 136 port->subnet_prefix = cpu_to_be64(RXE_PORT_SUBNET_PREFIX); 137 - 138 - return 0; 139 137 } 140 138 141 139 /* initialize port state, note IB convention that HCA ports are always