From: Bart Van Assche Date: Wed, 11 Oct 2017 17:49:08 +0000 (-0700) Subject: IB/mlx5: Remove a set-but-not-used variable X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3d1f236dccd847fb6d083684a7105e0bd9d174fa;p=openwrt%2Fstaging%2Fblogic.git IB/mlx5: Remove a set-but-not-used variable References: commit 5fe9dec0d045 ("IB/mlx5: Use blue flame register allocator in mlx5_ib") Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index b0b09febafda..37a0976240fd 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -3858,7 +3858,6 @@ int mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, unsigned long flags; unsigned idx; int err = 0; - int inl = 0; int num_sge; void *seg; int nreq; @@ -4117,7 +4116,6 @@ int mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, *bad_wr = wr; goto out; } - inl = 1; size += sz; } else { dpseg = seg;