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 @@ -155,23 +155,22 @@ int mlx5_core_destroy_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq)
155155 u32 in [MLX5_ST_SZ_DW (destroy_cq_in )] = {};
156156 int err ;
157157
158+ mlx5_debug_cq_remove (dev , cq );
159+
158160 mlx5_eq_del_cq (mlx5_get_async_eq (dev ), cq );
159161 mlx5_eq_del_cq (& cq -> eq -> core , cq );
160162
161163 MLX5_SET (destroy_cq_in , in , opcode , MLX5_CMD_OP_DESTROY_CQ );
162164 MLX5_SET (destroy_cq_in , in , cqn , cq -> cqn );
163165 MLX5_SET (destroy_cq_in , in , uid , cq -> uid );
164166 err = mlx5_cmd_exec_in (dev , destroy_cq , in );
165- if (err )
166- return err ;
167167
168168 synchronize_irq (cq -> irqn );
169169
170- mlx5_debug_cq_remove (dev , cq );
171170 mlx5_cq_put (cq );
172171 wait_for_completion (& cq -> free );
173172
174- return 0 ;
173+ return err ;
175174}
176175EXPORT_SYMBOL (mlx5_core_destroy_cq );
177176
You can’t perform that action at this time.
0 commit comments