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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}