summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/fsck.c
diff options
context:
space:
mode:
authorYuesong Li <liyuesong@vivo.com>2024-08-22 08:21:58 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2024-08-22 08:40:52 +0200
commitdedb2fe37574857c84e9598b9f5272505dedf7af (patch)
treea9f2001b8a5d53c654932cecca23ece5059c1f68 /fs/bcachefs/fsck.c
parentbcachefs: Fix refcounting in discard path (diff)
downloadlinux-dedb2fe37574857c84e9598b9f5272505dedf7af.tar.xz
linux-dedb2fe37574857c84e9598b9f5272505dedf7af.zip
bcachefs: Fix double assignment in check_dirent_to_subvol()
ret was assigned twice in check_dirent_to_subvol(). Reported by cocci. Signed-off-by: Yuesong Li <liyuesong@vivo.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fsck.c')
-rw-r--r--fs/bcachefs/fsck.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c
index 267c2336b115..6801c37ee803 100644
--- a/fs/bcachefs/fsck.c
+++ b/fs/bcachefs/fsck.c
@@ -2006,7 +2006,6 @@ static int check_dirent_to_subvol(struct btree_trans *trans, struct btree_iter *
if (ret) {
bch_err(c, "subvol %u points to missing inode root %llu", target_subvol, target_inum);
ret = -BCH_ERR_fsck_repair_unimplemented;
- ret = 0;
goto err;
}