aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-01-24 11:35:00 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-31 19:28:23 -0500
commitc15c928f36a2710746c2b945067215f436f45544 (patch)
tree72a98e6f683920845627b9294e0e27a7b496bd96 /fs/nfs
parentd3b773e4fd80524ac27802fcf11cfd9ed1d5491f (diff)
nfs: remove unneeded NULL pointer check in nfs4_remote_mount
"data" is never NULL here. Reported-by: Eric Paris <eparis@redhat.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index b79f2a11c29e..8e210b2c16d7 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2667,8 +2667,7 @@ nfs4_remote_mount(struct file_system_type *fs_type, int flags,
2667 if (!s->s_root) { 2667 if (!s->s_root) {
2668 /* initial superblock/root creation */ 2668 /* initial superblock/root creation */
2669 nfs4_fill_super(s); 2669 nfs4_fill_super(s);
2670 nfs_fscache_get_super_cookie( 2670 nfs_fscache_get_super_cookie(s, data->fscache_uniq, NULL);
2671 s, data ? data->fscache_uniq : NULL, NULL);
2672 } 2671 }
2673 2672
2674 mntroot = nfs4_get_root(s, mntfh, dev_name); 2673 mntroot = nfs4_get_root(s, mntfh, dev_name);