From: Danny Al-Gaaf Date: Fri, 13 Oct 2017 21:11:36 +0000 (+0200) Subject: librbd/Watcher.cc: remove redundant if() X-Git-Tag: v13.0.1~358^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f764f258d61384a8018665a6c2031cc2fa67d39c;p=ceph.git librbd/Watcher.cc: remove redundant if() Fix for: [src/librbd/Watcher.cc:131]: (style) Condition 'r>=0' is always true Signed-off-by: Danny Al-Gaaf --- diff --git a/src/librbd/Watcher.cc b/src/librbd/Watcher.cc index 54a2246f12cf..37fdaaebed6d 100644 --- a/src/librbd/Watcher.cc +++ b/src/librbd/Watcher.cc @@ -128,7 +128,7 @@ void Watcher::handle_register_watch(int r, Context *on_finish) { << dendl; m_watch_handle = 0; m_watch_state = WATCH_STATE_UNREGISTERED; - } else if (r >= 0) { + } else { m_watch_state = WATCH_STATE_REGISTERED; } }