[PATCH] bcachefs: Remove an unused label

From: Gabriel de Perthuis
Date: Fri Nov 08 2024 - 03:55:54 EST


Trivial fix for an issue that triggered -Werror.

fs/bcachefs/btree_io.c: In function ‘validate_bset’:
fs/bcachefs/btree_io.c:828:1: error: label ‘out’ defined but not used [-Werror=unused-label]
828 | out:
| ^~~
cc1: all warnings being treated as errors

Fixes: a78c8274ea0c7ebccf2474a9c2e4a15cead79295 ("bcachefs: Fix validate_bset() repair path")

Signed-off-by: Gabriel de Perthuis <g2p.code@xxxxxxxxx>
---
fs/bcachefs/btree_io.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/bcachefs/btree_io.c b/fs/bcachefs/btree_io.c
index b8c723d61283891bc789dc39056a44c7dc8d0d67..839d68802e4268ff500af0ee6b0029dcf77d3313 100644
--- a/fs/bcachefs/btree_io.c
+++ b/fs/bcachefs/btree_io.c
@@ -824,11 +824,10 @@ static int validate_bset(struct bch_fs *c, struct bch_dev *ca,

compat_bformat(b->c.level, b->c.btree_id, version,
BSET_BIG_ENDIAN(i), write,
&bn->format);
}
-out:
fsck_err:
printbuf_exit(&buf2);
printbuf_exit(&buf1);
return ret;
}

---
base-commit: a78c8274ea0c7ebccf2474a9c2e4a15cead79295
change-id: 20241108-build-fix-c2931c223567

Best regards,
--
Gabriel de Perthuis