Skip to content

Commit 8c6d76a

Browse files
olgakorn1pcmoore
authored andcommitted
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>
1 parent 69c4a42 commit 8c6d76a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/nfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ static void nfs_fill_super(struct super_block *sb, struct nfs_fs_context *ctx)
10451045
sb->s_blocksize = 0;
10461046
sb->s_xattr = server->nfs_client->cl_nfs_mod->xattr;
10471047
sb->s_op = server->nfs_client->cl_nfs_mod->sops;
1048-
if (ctx && ctx->bsize)
1048+
if (ctx->bsize)
10491049
sb->s_blocksize = nfs_block_size(ctx->bsize, &sb->s_blocksize_bits);
10501050

10511051
if (server->nfs_client->rpc_ops->version != 2) {

0 commit comments

Comments
 (0)