summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5
diff options
context:
space:
mode:
authorBart Van Assche2017-10-11 19:49:08 +0200
committerDoug Ledford2017-10-15 02:47:06 +0200
commit3d1f236dccd847fb6d083684a7105e0bd9d174fa (patch)
treea97e47dd96b4a54d7c4e7739ca57f1aae537d5b7 /drivers/infiniband/hw/mlx5
parentIB/mlx5: Suppress gcc 7 fall-through complaints (diff)
downloadkernel-qcow2-linux-3d1f236dccd847fb6d083684a7105e0bd9d174fa.tar.gz
kernel-qcow2-linux-3d1f236dccd847fb6d083684a7105e0bd9d174fa.tar.xz
kernel-qcow2-linux-3d1f236dccd847fb6d083684a7105e0bd9d174fa.zip
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 <bart.vanassche@wdc.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r--drivers/infiniband/hw/mlx5/qp.c2
1 files changed, 0 insertions, 2 deletions
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;