Commit dedb2fe3 authored by Yuesong Li's avatar Yuesong Li Committed by Kent Overstreet

bcachefs: Fix double assignment in check_dirent_to_subvol()

ret was assigned twice in check_dirent_to_subvol(). Reported by cocci.
Signed-off-by: default avatarYuesong Li <liyuesong@vivo.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 0b50b731
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment