]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/AsyncConnection.cc: reduce scope of variable 3290/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 7 Jan 2015 09:12:24 +0000 (10:12 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 7 Jan 2015 09:14:13 +0000 (10:14 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/msg/async/AsyncConnection.cc

index 26552fffb847ecb664de0551bf8ee74a054e52f4..b76e57665d611c4ff4669417cd9dc65df880e77a 100644 (file)
@@ -301,7 +301,6 @@ int AsyncConnection::_try_send(bufferlist send_bl, bool send)
     return -EINTR;
   }
 
-  int r = 0;
   uint64_t sent = 0;
   list<bufferptr>::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;