Commit 8c6d76a3 authored by Olga Kornievskaia's avatar Olga Kornievskaia Committed by Paul Moore

nfs: remove unneeded null check in nfs_fill_super()

In nfs_fill_super() passed in nfs_fs_context can never be NULL.
Signed-off-by: default avatarOlga Kornievskaia <kolga@netapp.com>
[PM: tweak subject line]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 69c4a42d
......@@ -1045,7 +1045,7 @@ static void nfs_fill_super(struct super_block *sb, struct nfs_fs_context *ctx)
sb->s_blocksize = 0;
sb->s_xattr = server->nfs_client->cl_nfs_mod->xattr;
sb->s_op = server->nfs_client->cl_nfs_mod->sops;
if (ctx && ctx->bsize)
if (ctx->bsize)
sb->s_blocksize = nfs_block_size(ctx->bsize, &sb->s_blocksize_bits);
if (server->nfs_client->rpc_ops->version != 2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment