]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/MDS.cc: don't compare integer with bool
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 3 Feb 2015 22:02:59 +0000 (23:02 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 3 Feb 2015 22:02:59 +0000 (23:02 +0100)
No need to use an extra variable to check the result of
a function returning bool if the result isn't used again.

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

index 412e62acfcf8d46091f297e0fd8ae71051b5a42f..2528f32e9e6429693d538f20d812096389c480bd 100644 (file)
@@ -2894,8 +2894,7 @@ bool MDS::ms_verify_authorizer(Connection *con, int peer_type,
 
       dout(10) << __func__ << ": parsing auth_cap_str='" << auth_cap_str << "'" << dendl;
       std::ostringstream errstr;
-      int parse_success = s->auth_caps.parse(auth_cap_str, &errstr);
-      if (parse_success == false) {
+      if (!s->auth_caps.parse(auth_cap_str, &errstr)) {
         dout(1) << __func__ << ": auth cap parse error: " << errstr.str()
           << " parsing '" << auth_cap_str << "'" << dendl;
       }