]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: CDentry. Remove needlessly redundant inline if-else.
authorGreg Farnum <gregf@hq.newdream.net>
Tue, 17 Aug 2010 18:13:42 +0000 (11:13 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 19 Aug 2010 22:33:53 +0000 (15:33 -0700)
src/mds/CDentry.h

index 468c4502b229ca09c35741ac4461d5f2a38675e6..e03e201672e55e6653d32262679083d703120413 100644 (file)
@@ -114,7 +114,7 @@ public:
     // inode ptr is required for primary, optional for remote, undefined for null
     bool is_primary() { return remote_ino == 0 && inode != 0; }
     bool is_remote() { return remote_ino > 0; }
-    bool is_null() { return (remote_ino == 0 && inode == 0) ? true:false; }
+    bool is_null() { return remote_ino == 0 && inode == 0; }
 
     CInode *get_inode() { return inode; }
     inodeno_t get_remote_ino() { return remote_ino; }