diff options
author | Eryu Guan <guaneryu@gmail.com> | 2015-10-19 19:37:58 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-11-02 09:35:02 +0100 |
commit | ae71f1cf53eea91e480dc5f7c9e13338a7e1205c (patch) | |
tree | 16fb1cc01bb263f8344bbfe139ed7308856dffac /cmds-check.c | |
parent | 140592187b37dafba98dc55e71c429c56d6e60b8 (diff) |
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>
Diffstat (limited to 'cmds-check.c')
-rw-r--r-- | cmds-check.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmds-check.c b/cmds-check.c index bd05b7ed..4040f7ea 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -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; |