]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: Remove unnecessary if check.
authorGreg Farnum <gregf@hq.newdream.net>
Fri, 30 Apr 2010 19:50:32 +0000 (12:50 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Mon, 2 Aug 2010 17:39:55 +0000 (10:39 -0700)
We already know that head_in exists, or we would have entered the previous
if-block and returned from the function.

src/mds/Locker.cc

index e80f97b7867778b9f0692126d8c3939a0a8e630b..01e5e6292d6129d8577662b55ab0346ff4fd8116 100644 (file)
@@ -1690,12 +1690,10 @@ void Locker::handle_client_caps(MClientCaps *m)
   }
 
   CInode *in = 0;
-  if (head_in) {
-    in = mdcache->pick_inode_snap(head_in, follows);
-    if (in != head_in)
-      dout(10) << " head inode " << *head_in << dendl;
-    dout(10) << "  cap inode " << *in << dendl;
-  }
+  in = mdcache->pick_inode_snap(head_in, follows);
+  if (in != head_in)
+    dout(10) << " head inode " << *head_in << dendl;
+  dout(10) << "  cap inode " << *in << dendl;
 
   Capability *cap = 0;
   if (in)