Skip to content

Commit

Permalink
RDMA/mlx5: Remove extraneous error check
Browse files Browse the repository at this point in the history
Remove double error check from create user RQ error flow.

Fixes: 79b20a6 ("IB/mlx5: Add receive Work Queue verbs")
Signed-off-by: Gal Pressman <pressmangal@gmail.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
Gal Pressman authored and Jason Gunthorpe committed Oct 16, 2018
1 parent 2351776 commit 645ba59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/infiniband/hw/mlx5/qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5587,8 +5587,7 @@ static int prepare_user_rq(struct ib_pd *pd,
err = create_user_rq(dev, pd, rwq, &ucmd);
if (err) {
mlx5_ib_dbg(dev, "err %d\n", err);
if (err)
return err;
return err;
}

rwq->user_index = ucmd.user_index;
Expand Down

0 comments on commit 645ba59

Please sign in to comment.