mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate
find_first{,_zero}_bit is a more effective analogue of 'next' version if start == 0. This patch replaces 'next' with 'first' where things look trivial. Signed-off-by: Yury Norov <yury.norov@gmail.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
This commit is contained in:
@@ -251,7 +251,7 @@ void gen_pool_destroy(struct gen_pool *pool)
|
||||
list_del(&chunk->next_chunk);
|
||||
|
||||
end_bit = chunk_size(chunk) >> order;
|
||||
bit = find_next_bit(chunk->bits, end_bit, 0);
|
||||
bit = find_first_bit(chunk->bits, end_bit);
|
||||
BUG_ON(bit < end_bit);
|
||||
|
||||
vfree(chunk);
|
||||
|
Reference in New Issue
Block a user