aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2023-10-28 19:05:29 +0000
committerYury Norov <[email protected]>2023-12-03 18:28:17 +0000
commit27c82f14e6d2bcb9f085bad37fe339227571de60 (patch)
treeeb381cc01b87c64b93a04df8f9714b0cd4c496e9 /drivers/cdx/controller/cdx_controller.c
parentlib/find_bit: Fix the code comments about find_next_bit_wrap (diff)
downloadkernel-27c82f14e6d2bcb9f085bad37fe339227571de60.tar.gz
kernel-27c82f14e6d2bcb9f085bad37fe339227571de60.zip
lib/find: optimize find_*_bit_wrap
When an offset is 0, there's no need to search a bitmap from the beginning after the 1st search failed, because each bit has already been tested. Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions