cxgbe: use order_base_2

Use order_base_2 in place of an expression.

Reviewed by:	alc, markj
Differential Revision:	https://reviews.freebsd.org/D45536
This commit is contained in:
Doug Moore 2024-06-24 02:18:42 -05:00
parent 7bb73f7315
commit 5fc42387d7

View file

@ -4228,7 +4228,7 @@ qsize_to_fthresh(int qsize)
{
u_int fthresh;
fthresh = qsize == 0 ? 0 : fls(qsize - 1);
fthresh = qsize == 0 ? 0 : order_base_2(qsize);
if (fthresh > X_CIDXFLUSHTHRESH_128)
fthresh = X_CIDXFLUSHTHRESH_128;