From: Greg Farnum Date: Fri, 30 Apr 2010 19:50:32 +0000 (-0700) Subject: mds: Remove unnecessary if check. X-Git-Tag: v0.22~346^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6a3600aeab116030abc19b550ff69d220da4d5ca;p=ceph.git mds: Remove unnecessary if check. We already know that head_in exists, or we would have entered the previous if-block and returned from the function. --- diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index e80f97b7867..01e5e6292d6 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -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)