summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/common.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-03-22 09:51:53 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 16:47:50 -0700
commitf53acface7a9765ba03b491485bcc53d72810aeb (patch)
tree8947f46f2173a6156de9e4191c0272ec74d619f1 /fs/xfs/scrub/common.c
parentde9d2a78add1a4c9508be96bad7e29d899e0ff0f (diff)
downloadlinux-stable-f53acface7a9765ba03b491485bcc53d72810aeb.tar.gz
linux-stable-f53acface7a9765ba03b491485bcc53d72810aeb.tar.bz2
linux-stable-f53acface7a9765ba03b491485bcc53d72810aeb.zip
xfs: remove return value from xchk_ag_btcur_init
Functions called by this function cannot fail, so get rid of the return and error checking. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/common.c')
-rw-r--r--fs/xfs/scrub/common.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/scrub/common.c b/fs/xfs/scrub/common.c
index 45c5bf37daaa..da60e7d1f895 100644
--- a/fs/xfs/scrub/common.c
+++ b/fs/xfs/scrub/common.c
@@ -452,7 +452,7 @@ xchk_ag_btcur_free(
}
/* Initialize all the btree cursors for an AG. */
-int
+void
xchk_ag_btcur_init(
struct xfs_scrub *sc,
struct xchk_ag *sa)
@@ -502,8 +502,6 @@ xchk_ag_btcur_init(
sa->refc_cur = xfs_refcountbt_init_cursor(mp, sc->tp,
sa->agf_bp, agno);
}
-
- return 0;
}
/* Release the AG header context and btree cursors. */
@@ -551,7 +549,8 @@ xchk_ag_init(
if (error)
return error;
- return xchk_ag_btcur_init(sc, sa);
+ xchk_ag_btcur_init(sc, sa);
+ return 0;
}
/*