Skip to content

Commit 97de9f3

Browse files
Achiad Shochatdavem330
authored andcommitted
net/mlx5e: Avoid redundant de-reference
Use the already defined rq pointer directly. Signed-off-by: Achiad Shochat <[email protected]> Signed-off-by: Amir Vadai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 28abbfd commit 97de9f3

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ static int mlx5e_enable_rq(struct mlx5e_rq *rq, struct mlx5e_rq_param *param)
345345

346346
memcpy(rqc, param->rqc, sizeof(param->rqc));
347347

348-
MLX5_SET(rqc, rqc, cqn, c->rq.cq.mcq.cqn);
348+
MLX5_SET(rqc, rqc, cqn, rq->cq.mcq.cqn);
349349
MLX5_SET(rqc, rqc, state, MLX5_RQC_STATE_RST);
350350
MLX5_SET(rqc, rqc, flush_in_error_en, 1);
351351
MLX5_SET(wq, wq, log_wq_pg_sz, rq->wq_ctrl.buf.page_shift -

0 commit comments

Comments
 (0)