]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - fs/nfs/super.c
Merge branch 'work.dcache2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[zynq/linux.git] / fs / nfs / super.c
index 3683d2b1cc8e3d331174c4918c4ae052211ab405..628631e2e34fe630f6e24a814f43551d93484135 100644 (file)
@@ -457,10 +457,8 @@ int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
                struct dentry *pd_dentry;
 
                pd_dentry = dget_parent(dentry);
-               if (pd_dentry != NULL) {
-                       nfs_zap_caches(d_inode(pd_dentry));
-                       dput(pd_dentry);
-               }
+               nfs_zap_caches(d_inode(pd_dentry));
+               dput(pd_dentry);
        }
        nfs_free_fattr(res.fattr);
        if (error < 0)