]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ceph/caps.c
ceph, rbd: delete unnecessary checks before two function calls
[karo-tx-linux.git] / fs / ceph / caps.c
index cefca661464b91a4edae048a8567e900d8560df6..eb1bf1f35e0e90355f98037594f366716338a25d 100644 (file)
@@ -3137,8 +3137,7 @@ flush_cap_releases:
 done:
        mutex_unlock(&session->s_mutex);
 done_unlocked:
-       if (inode)
-               iput(inode);
+       iput(inode);
        return;
 
 bad: