Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c15c928f authored by Jeff Layton's avatar Jeff Layton Committed by Trond Myklebust
Browse files

nfs: remove unneeded NULL pointer check in nfs4_remote_mount



"data" is never NULL here.

Reported-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent d3b773e4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);