aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2021-07-29 21:24:35 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-07-29 21:24:35 +0000
commit4c8af633d10104c793673ee1f6e7b96f113cce5a (patch)
tree8dfb669d392b68f1bec1449f6b0e466db02765b2 /sys/compat/linuxkpi/common/include
parent95d619a8ea1f410ecea58bc534af770a010069ab (diff)
downloadsrc-4c8af633d10104c793673ee1f6e7b96f113cce5a.tar.gz
src-4c8af633d10104c793673ee1f6e7b96f113cce5a.zip
LinuxKPI: bitfield.h cleanup
Add a missing tab and remove an unnecessary return. No functional changes. MFC after: 3 days
Diffstat (limited to 'sys/compat/linuxkpi/common/include')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/bitfield.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/bitfield.h b/sys/compat/linuxkpi/common/include/linux/bitfield.h
index 4749cc4454e7..27082cbd4886 100644
--- a/sys/compat/linuxkpi/common/include/linux/bitfield.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitfield.h
@@ -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)