IB/mlx4: Fix uninitialized-var warning in mlx4_ib_post_send()
commita3d8e1591dc90d359d444c759dfda2c6fc605251
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 16 May 2008 21:28:30 +0000 (16 14:28 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 16 May 2008 21:28:30 +0000 (16 14:28 -0700)
tree04e77ad79237bffda26206235124df16bf00f962
parentdf3f0da8db6b5e7e8f0585221c8b1cd8ff806d35
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>
drivers/infiniband/hw/mlx4/qp.c