aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2007-07-18 13:28:29 -0700
committerRoland Dreier <rolandd@cisco.com>2007-07-18 13:28:29 -0700
commit43509d1fece975ac457282ca1137fe438894a81d (patch)
treec96f9a628208fcb56fb616fed96b81081c1a2eee /include/linux/fs.h
parentIB/mthca: Factor out setting WQE UD segment entries (diff)
downloadlinux-dev-43509d1fece975ac457282ca1137fe438894a81d.tar.xz
linux-dev-43509d1fece975ac457282ca1137fe438894a81d.zip
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>
Diffstat (limited to 'include/linux/fs.h')
0 files changed, 0 insertions, 0 deletions