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>
master
Eryu Guan 2015-10-19 19:37:58 +08:00 committed by David Sterba
parent 140592187b
commit ae71f1cf53
1 changed files with 0 additions and 2 deletions

View File

@ -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;