mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
aic7xxx: use rounddown_pow_of_two
Use the roundown_pow_of_two macro in place of an expression. Reviewed by: alc, markj Differential Revision: https://reviews.freebsd.org/D45536
This commit is contained in:
parent
c8b0c33b03
commit
4bbdabc2bd
1 changed files with 1 additions and 1 deletions
|
|
@ -8593,7 +8593,7 @@ ahd_loadseq(struct ahd_softc *ahd)
|
|||
if (sg_prefetch_align == 0)
|
||||
sg_prefetch_align = 8;
|
||||
/* Round down to the nearest power of 2. */
|
||||
sg_prefetch_align = 1 << ilog2(sg_prefetch_align);
|
||||
sg_prefetch_align = rounddown_pow_of_two(sg_prefetch_align);
|
||||
|
||||
cacheline_mask = sg_prefetch_align - 1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue