nfs: remove unneeded NULL pointer check in nfs4_remote_mount
authorJeff Layton <jlayton@redhat.com>
Tue, 24 Jan 2012 16:35:00 +0000 (16:35 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 1 Feb 2012 00:28:23 +0000 (19:28 -0500)
"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>
fs/nfs/super.c

index b79f2a11c29ef1e7c18261c43cf49db45378ae8f..8e210b2c16d7a89e20955e57e287f3877861edfd 100644 (file)
@@ -2667,8 +2667,7 @@ nfs4_remote_mount(struct file_system_type *fs_type, int flags,
        if (!s->s_root) {
                /* initial superblock/root creation */
                nfs4_fill_super(s);
-               nfs_fscache_get_super_cookie(
-                       s, data ? data->fscache_uniq : NULL, NULL);
+               nfs_fscache_get_super_cookie(s, data->fscache_uniq, NULL);
        }
 
        mntroot = nfs4_get_root(s, mntfh, dev_name);