aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-08-09 13:33:25 -0400
committerAlex Elder <elder@inktank.com>2012-10-01 15:30:50 -0400
commit542582fce1700c01b12e7945aaf173074e008e3e (patch)
treeaa172df458c049a10082f1c595bf26d00dcd40a8 /drivers/hv
parent84d34dcc116e117a41c6fc8be13430529fc2d9e7 (diff)
rbd: bio_chain_clone() cleanups
In bio_chain_clone(), at the end of the function the bi_next field of the tail of the new bio chain is nulled. This isn't necessary, because if "tail" is non-null, its value will be the last bio structure allocated at the top of the while loop in that function. And before that structure is added to the end of the new chain, its bi_next pointer is always made null. While touching that function, clean a few other things: - define each local variable on its own line - move the definition of "tmp" to an inner scope - move the modification of gfpmask closer to where it's used - rearrange the logic that sets the chain's tail pointer Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Diffstat (limited to 'drivers/hv')
0 files changed, 0 insertions, 0 deletions