From ae71f1cf53eea91e480dc5f7c9e13338a7e1205c Mon Sep 17 00:00:00 2001 From: Eryu Guan Date: Mon, 19 Oct 2015 19:37:58 +0800 Subject: [PATCH] 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 Signed-off-by: David Sterba --- cmds-check.c | 2 -- 1 file changed, 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;