RDMA/cxgb3: Fix uninitialized variable warning in iwch_post_send()
authorRoland Dreier <rolandd@cisco.com>
Fri, 16 May 2008 21:58:40 +0000 (14:58 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 16 May 2008 21:58:40 +0000 (14:58 -0700)
commit21609ae3efa42f4118ce741f7e55d66d716cb17c
tree49627d1cfa7090f1f88049ac29ca1462d642d80a
parenta3d8e1591dc90d359d444c759dfda2c6fc605251
RDMA/cxgb3: Fix uninitialized variable warning in iwch_post_send()

    drivers/infiniband/hw/cxgb3/iwch_qp.c: In function 'iwch_post_send':
    drivers/infiniband/hw/cxgb3/iwch_qp.c:232: warning: 't3_wr_flit_cnt' may be used uninitialized in this function

This is what akpm describes as "the dopey
gcc-doesn't-know-that-foo(&var)-writes-to-var problem."

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
drivers/infiniband/hw/cxgb3/iwch_qp.c