alistair23-linux/drivers/infiniband/hw
Roland Dreier 43509d1fec IB/mthca: Simplify use of size0 in work request posting
Current code sets size0 to 0 at the start of work request posting
functions and then handles size0 == 0 specially within the loop over
work requests.  Change this so size0 is set along with f0 the first
time through the loop (when nreq == 0).  This makes the code easier to
understand by making it clearer that f0 and size0 are always
initialized if nreq != 0 without having to know that size0 == 0
implies nreq == 0.

Also annotate size0 with uninitialized_var() so that this doesn't
introduce a new compiler warning.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-07-18 13:28:29 -07:00
..
amso1100 IB: Use menuconfig for InfiniBand menu 2007-07-09 20:12:26 -07:00
cxgb3 RDMA/cxgb3: Remove cm_id reference on listen failures 2007-07-17 18:37:38 -07:00
ehca IB/ehca: Fix warnings issued by checkpatch.pl 2007-07-17 18:37:40 -07:00
ipath IB/ipath: Remove ipath_get_user_pages_nocopy() 2007-07-17 18:37:43 -07:00
mlx4 IB/mlx4: Factor out setting other WQE segments 2007-07-18 11:47:55 -07:00
mthca IB/mthca: Simplify use of size0 in work request posting 2007-07-18 13:28:29 -07:00