diff options
author | Gal Pressman <pressmangal@gmail.com> | 2018-10-08 19:44:03 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-10-16 00:21:38 -0600 |
commit | 645ba5970c0766c610920fd5e8dd34e62766af5a (patch) | |
tree | bfd02579d6409db0d005fb9674d54d306a25838c /drivers/infiniband/hw | |
parent | 2351776e87a18318b5f4732e7790f0c726cc37a0 (diff) | |
download | linux-645ba5970c0766c610920fd5e8dd34e62766af5a.tar.gz linux-645ba5970c0766c610920fd5e8dd34e62766af5a.tar.bz2 linux-645ba5970c0766c610920fd5e8dd34e62766af5a.zip |
RDMA/mlx5: Remove extraneous error check
Remove double error check from create user RQ error flow.
Fixes: 79b20a6c3014 ("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>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/mlx5/qp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index fa8e5dc65cb4..829aec3aba8f 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -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; |