hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/infiniband/hw/mlx5/qpc.c
....@@ -297,8 +297,7 @@
297297 MLX5_SET(destroy_qp_in, in, opcode, MLX5_CMD_OP_DESTROY_QP);
298298 MLX5_SET(destroy_qp_in, in, qpn, qp->qpn);
299299 MLX5_SET(destroy_qp_in, in, uid, qp->uid);
300
- mlx5_cmd_exec_in(dev->mdev, destroy_qp, in);
301
- return 0;
300
+ return mlx5_cmd_exec_in(dev->mdev, destroy_qp, in);
302301 }
303302
304303 int mlx5_core_set_delay_drop(struct mlx5_ib_dev *dev,
....@@ -542,14 +541,14 @@
542541 return mlx5_cmd_exec_in(dev->mdev, dealloc_xrcd, in);
543542 }
544543
545
-static void destroy_rq_tracked(struct mlx5_ib_dev *dev, u32 rqn, u16 uid)
544
+static int destroy_rq_tracked(struct mlx5_ib_dev *dev, u32 rqn, u16 uid)
546545 {
547546 u32 in[MLX5_ST_SZ_DW(destroy_rq_in)] = {};
548547
549548 MLX5_SET(destroy_rq_in, in, opcode, MLX5_CMD_OP_DESTROY_RQ);
550549 MLX5_SET(destroy_rq_in, in, rqn, rqn);
551550 MLX5_SET(destroy_rq_in, in, uid, uid);
552
- mlx5_cmd_exec_in(dev->mdev, destroy_rq, in);
551
+ return mlx5_cmd_exec_in(dev->mdev, destroy_rq, in);
553552 }
554553
555554 int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen,
....@@ -580,8 +579,7 @@
580579 struct mlx5_core_qp *rq)
581580 {
582581 destroy_resource_common(dev, rq);
583
- destroy_rq_tracked(dev, rq->qpn, rq->uid);
584
- return 0;
582
+ return destroy_rq_tracked(dev, rq->qpn, rq->uid);
585583 }
586584
587585 static void destroy_sq_tracked(struct mlx5_ib_dev *dev, u32 sqn, u16 uid)