Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Olga Kornievskaia <kolga@netapp.com>
[PM: tweak subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>

authored by

Olga Kornievskaia and committed by
Paul Moore
8c6d76a3 69c4a42d

+1 -1
+1 -1
fs/nfs/super.c
··· 1045 1045 sb->s_blocksize = 0; 1046 1046 sb->s_xattr = server->nfs_client->cl_nfs_mod->xattr; 1047 1047 sb->s_op = server->nfs_client->cl_nfs_mod->sops; 1048 - if (ctx && ctx->bsize) 1048 + if (ctx->bsize) 1049 1049 sb->s_blocksize = nfs_block_size(ctx->bsize, &sb->s_blocksize_bits); 1050 1050 1051 1051 if (server->nfs_client->rpc_ops->version != 2) {