On Wed, 26 Mar 2025 11:51:58 -0400, Yury Norov wrote: > The function calls bitmap_empty() just before find_first_bit(). Both > functions are O(N). Because find_first_bit() returns >= nbits in case of > empty bitmap, the bitmap_empty() test may be avoided. > > Applied, thanks! [1/1] wifi: carl9170: micro-optimize carl9170_tx_shift_bm() commit: 08e3cc13b0d050860f41b4eaaa21c789af968b98 Best regards, -- Jeff Johnson <jeff.johnson@xxxxxxxxxxxxxxxx>