diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-07-01 14:54:24 +0200 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-07-15 00:21:43 +0200 |
commit | e2863a78593d638d3924a6f67900c4820034f349 (patch) | |
tree | 4245043ae17fc58f14ba95ae28975474cadb6585 /lib | |
parent | arm: align find_bit declarations with generic kernel (diff) | |
download | linux-e2863a78593d638d3924a6f67900c4820034f349.tar.xz linux-e2863a78593d638d3924a6f67900c4820034f349.zip |
lib/bitmap: change return types to bool where appropriate
Some bitmap functions return boolean results in int variables. Fix it
by changing return types to bool.
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitmap.c b/lib/bitmap.c index e903e13c62e1..9bc80f5bf149 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c @@ -237,7 +237,7 @@ void bitmap_cut(unsigned long *dst, const unsigned long *src, } EXPORT_SYMBOL(bitmap_cut); -int __bitmap_and(unsigned long *dst, const unsigned long *bitmap1, +bool __bitmap_and(unsigned long *dst, const unsigned long *bitmap1, const unsigned long *bitmap2, unsigned int bits) { unsigned int k; @@ -275,7 +275,7 @@ void __bitmap_xor(unsigned long *dst, const unsigned long *bitmap1, } EXPORT_SYMBOL(__bitmap_xor); -int __bitmap_andnot(unsigned long *dst, const unsigned long *bitmap1, +bool __bitmap_andnot(unsigned long *dst, const unsigned long *bitmap1, const unsigned long *bitmap2, unsigned int bits) { unsigned int k; |