diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-05-16 17:28:30 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-05-16 17:28:30 -0400 |
commit | a3d8e1591dc90d359d444c759dfda2c6fc605251 (patch) | |
tree | 04e77ad79237bffda26206235124df16bf00f962 | |
parent | df3f0da8db6b5e7e8f0585221c8b1cd8ff806d35 (diff) |
IB/mlx4: Fix uninitialized-var warning in mlx4_ib_post_send()
drivers/infiniband/hw/mlx4/qp.c: In function 'mlx4_ib_post_send':
drivers/infiniband/hw/mlx4/qp.c:1460: warning: 'seglen' may be used uninitialized in this function
This is the dopey gcc-doesn't-know-that-foo(&var)-writes-to-var problem.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | drivers/infiniband/hw/mlx4/qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index 8e02ecfec188..cec030e118d1 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c | |||
@@ -1457,7 +1457,7 @@ int mlx4_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, | |||
1457 | unsigned ind; | 1457 | unsigned ind; |
1458 | int uninitialized_var(stamp); | 1458 | int uninitialized_var(stamp); |
1459 | int uninitialized_var(size); | 1459 | int uninitialized_var(size); |
1460 | unsigned seglen; | 1460 | unsigned uninitialized_var(seglen); |
1461 | int i; | 1461 | int i; |
1462 | 1462 | ||
1463 | spin_lock_irqsave(&qp->sq.lock, flags); | 1463 | spin_lock_irqsave(&qp->sq.lock, flags); |