]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/Watcher.cc: remove redundant if()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 13 Oct 2017 21:11:36 +0000 (23:11 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 25 Oct 2017 16:14:05 +0000 (18:14 +0200)
Fix for:

[src/librbd/Watcher.cc:131]: (style) Condition 'r>=0' is always true

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/librbd/Watcher.cc

index 54a2246f12cff7ea82c41353141b30a0624de84a..37fdaaebed6d6ca8f6135ec2f900f4acbd666771 100644 (file)
@@ -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;
     }
   }