xfs: simplify returns in xchk_bmap
authorDarrick J. Wong <djwong@kernel.org>
Thu, 10 Aug 2023 14:48:13 +0000 (07:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 10 Aug 2023 14:48:13 +0000 (07:48 -0700)
commit65092ca1402cb7d640c6f65d3c19eb02bf08ead1
treeeef62989ca5eebdcc98b3eaa5b5f679c8527f793
parent369c001b7a2501326a172e0afcc30572f32018c1
xfs: simplify returns in xchk_bmap

Remove the pointless goto and return code in xchk_bmap, since it only
serves to obscure what's going on in the function.  Instead, return
whichever error code is appropriate there.  For nonexistent forks,
this should have been ENOENT.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/bmap.c