From: Danny Al-Gaaf Date: Wed, 7 Jan 2015 09:12:24 +0000 (+0100) Subject: msg/async/AsyncConnection.cc: reduce scope of variable X-Git-Tag: v0.92~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3d08a687eeae3dd0cfc421dd04a7a4be4972d733;p=ceph.git msg/async/AsyncConnection.cc: reduce scope of variable Signed-off-by: Danny Al-Gaaf --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 26552fffb847..b76e57665d61 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -301,7 +301,6 @@ int AsyncConnection::_try_send(bufferlist send_bl, bool send) return -EINTR; } - int r = 0; uint64_t sent = 0; list::const_iterator pb = outcoming_bl.buffers().begin(); uint64_t left_pbrs = outcoming_bl.buffers().size(); @@ -322,7 +321,7 @@ int AsyncConnection::_try_send(bufferlist send_bl, bool send) size--; } - r = do_sendmsg(msg, msglen, false); + int r = do_sendmsg(msg, msglen, false); if (r < 0) return r;