Skip to content

Commit

Permalink
RDMA/rxe: Return void from rxe_init_port_param()
Browse files Browse the repository at this point in the history
The return value from rxe_init_port_param() is always 0 - change it to be
void.

Fixes: 8700e3e ("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>
  • Loading branch information
Kamal Heib authored and Jason Gunthorpe committed Jul 16, 2020
1 parent 6112ef6 commit 9d576ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/infiniband/sw/rxe/rxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static void rxe_init_device_param(struct rxe_dev *rxe)
}

/* initialize port attributes */
static int rxe_init_port_param(struct rxe_port *port)
static void rxe_init_port_param(struct rxe_port *port)
{
port->attr.state = IB_PORT_DOWN;
port->attr.max_mtu = IB_MTU_4096;
Expand All @@ -134,8 +134,6 @@ static int rxe_init_port_param(struct rxe_port *port)
port->attr.phys_state = RXE_PORT_PHYS_STATE;
port->mtu_cap = ib_mtu_enum_to_int(IB_MTU_256);
port->subnet_prefix = cpu_to_be64(RXE_PORT_SUBNET_PREFIX);

return 0;
}

/* initialize port state, note IB convention that HCA ports are always
Expand Down

0 comments on commit 9d576ea

Please sign in to comment.