From: Danny Al-Gaaf Date: Wed, 22 Oct 2014 08:47:29 +0000 (+0200) Subject: rbd-replay-prep.cc: reduce scope of variable X-Git-Tag: v0.88~22^2~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=53f2dad7e0f4fe30c6752612bcccabae3d2ccb0b;p=ceph.git rbd-replay-prep.cc: reduce scope of variable Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rbd_replay/rbd-replay-prep.cc b/src/rbd_replay/rbd-replay-prep.cc index 4d0d1918467b..8a602e0aae3e 100644 --- a/src/rbd_replay/rbd-replay-prep.cc +++ b/src/rbd_replay/rbd-replay-prep.cc @@ -199,10 +199,9 @@ public: struct bt_iter *bt_itr = bt_ctf_get_iter(itr); uint64_t trace_start = 0; - struct bt_ctf_event *evt; bool first = true; while(true) { - evt = bt_ctf_iter_read_event(itr); + struct bt_ctf_event *evt = bt_ctf_iter_read_event(itr); if(!evt) { break; }