diff --git a/fs/nfs/super.c b/fs/nfs/super.c index f88ddac2dcdf..bc56ca02d0fe 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -452,10 +452,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)