Skip to content

Commit dedb2fe

Browse files
Yuesong LiKent Overstreet
authored andcommitted
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 <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
1 parent 0b50b73 commit dedb2fe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/bcachefs/fsck.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,6 @@ static int check_dirent_to_subvol(struct btree_trans *trans, struct btree_iter *
20062006
if (ret) {
20072007
bch_err(c, "subvol %u points to missing inode root %llu", target_subvol, target_inum);
20082008
ret = -BCH_ERR_fsck_repair_unimplemented;
2009-
ret = 0;
20102009
goto err;
20112010
}
20122011

0 commit comments

Comments
 (0)