xfs: shmem_file_setup can't return NULL
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Feb 2024 06:27:17 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:52 +0000 (11:36 +0530)
commit1b07ea2ab3dc0307f80c735cba8c3ef690bd9aab
tree291f77cfcde352ce23430493473b39b93d74af1b
parentb44c0eb8ae9c3e22cfa113774134673ac18ac848
xfs: shmem_file_setup can't return NULL

shmem_file_setup always returns a struct file pointer or an ERR_PTR,
so remove the code to check for a NULL return.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/xfile.c