File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
drivers/net/ethernet/mellanox/mlx5/core Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -154,23 +154,22 @@ int mlx5_core_destroy_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq)
154154 u32 in [MLX5_ST_SZ_DW (destroy_cq_in )] = {};
155155 int err ;
156156
157+ mlx5_debug_cq_remove (dev , cq );
158+
157159 mlx5_eq_del_cq (mlx5_get_async_eq (dev ), cq );
158160 mlx5_eq_del_cq (& cq -> eq -> core , cq );
159161
160162 MLX5_SET (destroy_cq_in , in , opcode , MLX5_CMD_OP_DESTROY_CQ );
161163 MLX5_SET (destroy_cq_in , in , cqn , cq -> cqn );
162164 MLX5_SET (destroy_cq_in , in , uid , cq -> uid );
163165 err = mlx5_cmd_exec_in (dev , destroy_cq , in );
164- if (err )
165- return err ;
166166
167167 synchronize_irq (cq -> irqn );
168168
169- mlx5_debug_cq_remove (dev , cq );
170169 mlx5_cq_put (cq );
171170 wait_for_completion (& cq -> free );
172171
173- return 0 ;
172+ return err ;
174173}
175174EXPORT_SYMBOL (mlx5_core_destroy_cq );
176175
You can’t perform that action at this time.
0 commit comments