]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Remove unnecessary check in nfs_read_folio()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 19 Jan 2023 21:33:51 +0000 (16:33 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 14 Feb 2023 19:22:33 +0000 (14:22 -0500)
commit2de3d04b3bcba3ae0474373cbd0c85f4f09ed9d2
treee08eb1d970ab81589c0f3fcbc2dc863e12873edf
parent256093fec1f0ae2f10eb3aae5903ecb689c55ecc
NFS: Remove unnecessary check in nfs_read_folio()

All the callers are expected to supply a valid struct file argument, so
there is no need for the NULL check.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/read.c