From: Danny Al-Gaaf Date: Wed, 17 Feb 2016 14:30:34 +0000 (+0100) Subject: msg/async/Event.cc: reduce scope of variable X-Git-Tag: v10.1.0~312^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e5c9694aa5f95b784c6e6916c98cda34bc5ac2b0;p=ceph.git msg/async/Event.cc: reduce scope of variable Signed-off-by: Danny Al-Gaaf --- diff --git a/src/msg/async/Event.cc b/src/msg/async/Event.cc index 00abef4fa022..a3a6361cc838 100644 --- a/src/msg/async/Event.cc +++ b/src/msg/async/Event.cc @@ -41,10 +41,9 @@ class C_handle_notify : public EventCallback { C_handle_notify(EventCenter *c, CephContext *cc): center(c), cct(cc) {} void do_request(int fd_or_id) { char c[256]; - int r; do { center->already_wakeup.set(0); - r = read(fd_or_id, c, sizeof(c)); + int r = read(fd_or_id, c, sizeof(c)); if (r < 0) { ldout(cct, 1) << __func__ << " read notify pipe failed: " << cpp_strerror(errno) << dendl; break;