btrfs-progs: Remove the dead branch in btrfs_run_delayed_refs()

cleanup_ref_head() will only return 0 or 1, no way to return a negative
value.  So remove the dead branch.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
master
Qu Wenruo 2019-04-16 15:15:24 +08:00 committed by David Sterba
parent 3fe16a10da
commit 27a5b9ddc3
1 changed files with 0 additions and 2 deletions

View File

@ -4235,8 +4235,6 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, unsigned long nr)
/* We dropped our lock, we need to loop. */
ret = 0;
continue;
} else if (ret) {
return ret;
}
locked_ref = NULL;
continue;