mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 10:41:49 +02:00
btrfs: change return type from int to bool in check_eb_range()
The function always returns true or false but the its return type is defined as int, which makes no sense. Change it to bool. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
d54d38fed9
commit
798c2ef739
|
|
@ -3994,8 +3994,8 @@ static bool report_eb_range(const struct extent_buffer *eb, unsigned long start,
|
|||
*
|
||||
* Caller should not touch the dst/src memory if this function returns error.
|
||||
*/
|
||||
static inline int check_eb_range(const struct extent_buffer *eb,
|
||||
unsigned long start, unsigned long len)
|
||||
static inline bool check_eb_range(const struct extent_buffer *eb,
|
||||
unsigned long start, unsigned long len)
|
||||
{
|
||||
unsigned long offset;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user