diff options
author | Olga Kornievskaia <kolga@netapp.com> | 2021-02-20 01:22:32 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-03-22 21:59:02 +0300 |
commit | 8c6d76a3144154773339be5e29c8bf42586dc3d1 (patch) | |
tree | ebced1c41088dc12b858e9a90a5c2d8c9cdf7e02 /fs/nfs | |
parent | 69c4a42d72eb9b41e1c6e4bc9ab7f3650bf35f62 (diff) | |
download | linux-8c6d76a3144154773339be5e29c8bf42586dc3d1.tar.xz |
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 94885c6f8f54..de83c61a6733 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -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) { |