mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: bitfield.h cleanup
Add a missing tab and remove an unnecessary return.
No functional changes.
(cherry picked from commit 4c8af633d1)
This commit is contained in:
parent
e41baaefc4
commit
2314243b4a
1 changed files with 1 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ _uX_encode_bits(8)
|
|||
|
||||
#define _leX_encode_bits(_n) \
|
||||
static __inline uint ## _n ## _t \
|
||||
le ## _n ## _encode_bits(__le ## _n v, uint ## _n ## _t f)\
|
||||
le ## _n ## _encode_bits(__le ## _n v, uint ## _n ## _t f) \
|
||||
{ \
|
||||
return (cpu_to_le ## _n((v & ___bitmask(f)) * ___lsb(f))); \
|
||||
}
|
||||
|
|
@ -91,7 +91,6 @@ le32p_replace_bits(uint32_t *p, uint32_t v, uint32_t f)
|
|||
{
|
||||
|
||||
*p = (*p & ~(cpu_to_le32(v))) | le32_encode_bits(v, f);
|
||||
return;
|
||||
}
|
||||
|
||||
#define __bf_shf(x) (__builtin_ffsll(x) - 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue