Commit bb09b9a4 authored by Filipe Manana's avatar Filipe Manana Committed by David Sterba
Browse files

btrfs: remove out_failed label in find_lock_delalloc_range()



There is no point in having the label since all it does is return the
value in the 'found' variable. Instead make every goto return directly
and remove the label.

Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2efcd25a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -440,8 +440,7 @@ noinline_for_stack bool find_lock_delalloc_range(struct inode *inode,
			loops = 1;
			goto again;
		} else {
			found = false;
			goto out_failed;
			return false;
		}
	}

@@ -461,7 +460,7 @@ noinline_for_stack bool find_lock_delalloc_range(struct inode *inode,
	}
	*start = delalloc_start;
	*end = delalloc_end;
out_failed:

	return found;
}