libceph: use local variables for message positions
authorAlex Elder <elder@inktank.com>
Thu, 7 Mar 2013 05:39:38 +0000 (23:39 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:46 +0000 (21:16 -0700)
commitbae6acd9c65cbfeffc66a9f48ae91dca6e3aec85
tree982699ac420bd52c21bdc84230594f65f0ed58bb
parent98a0370898799895aa8f55109f54c33fcd8196b0
libceph: use local variables for message positions

There are several places where a message's out_msg_pos or in_msg_pos
field is used repeatedly within a function.  Use a local pointer
variable for this purpose to unclutter the code.

This and the upcoming cleanup patches are related to:
    http://tracker.ceph.com/issues/4403

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c