Skip to content

Commit

Permalink
IB/rxe: change the function rxe_init_device_param type
Browse files Browse the repository at this point in the history
The function rxe_init_device_param always return 0. So the function
type is changed to void.

CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Zhu Yanjun authored and Jason Gunthorpe committed Mar 7, 2018
1 parent 31f1bd1 commit befd8d9
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
@@ -78,7 +78,7 @@ void rxe_release(struct kref *kref)
}

/* initialize rxe device parameters */
static int rxe_init_device_param(struct rxe_dev *rxe)
static void rxe_init_device_param(struct rxe_dev *rxe)
{
rxe->max_inline_data = RXE_MAX_INLINE_DATA;

@@ -122,8 +122,6 @@ static int rxe_init_device_param(struct rxe_dev *rxe)
rxe->attr.local_ca_ack_delay = RXE_LOCAL_CA_ACK_DELAY;

rxe->max_ucontext = RXE_MAX_UCONTEXT;

return 0;
}

/* initialize port attributes */

0 comments on commit befd8d9

Please sign in to comment.