]> www.infradead.org Git - users/hch/configfs.git/commitdiff
bcachefs: Fix double assignment in check_dirent_to_subvol()
authorYuesong Li <liyuesong@vivo.com>
Thu, 22 Aug 2024 06:21:58 +0000 (14:21 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 06:40:52 +0000 (02:40 -0400)
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>
fs/bcachefs/fsck.c

index 267c2336b1155dd71944ba600bfc80d7303fb78a..6801c37ee803dc79436c87c5ab7213fd1476244d 100644 (file)
@@ -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;
        }