* [PATCH] nfs: remove unneeded NULL pointer check in nfs4_remote_mount
@ 2012-01-24 16:35 Jeff Layton
0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2012-01-24 16:35 UTC (permalink / raw)
To: trond.myklebust; +Cc: linux-nfs, eparis
"data" is never NULL here.
Reported-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
fs/nfs/super.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 3dfa4f1..5499316 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2663,8 +2663,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);
--
1.7.7.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-24 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-24 16:35 [PATCH] nfs: remove unneeded NULL pointer check in nfs4_remote_mount Jeff Layton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).