btrfs-progs: remove identical branch in record_extent()
The same code is executed when the condition "ret" is true or false, because the code in the if-then branch and after the if statement is identical. Signed-off-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
140592187b
commit
ae71f1cf53
|
@ -6426,8 +6426,6 @@ static int record_extent(struct btrfs_trans_handle *trans,
|
|||
"start %llu len %llu parent %llu root %llu\n",
|
||||
rec->start, rec->max_size, parent, tback->root);
|
||||
}
|
||||
if (ret)
|
||||
goto fail;
|
||||
fail:
|
||||
btrfs_release_path(path);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue