mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 14:14:56 +00:00
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:
parent
7bb73f7315
commit
5fc42387d7
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue