Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] rtl8723bs: Remove redundant macro in basic_types.h
@ 2026-10-16  1:19 iuseacosbtw
  0 siblings, 0 replies; only message in thread
From: iuseacosbtw @ 2026-10-16  1:19 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, Alexis Buttler

From: Alexis Buttler <iuseacosbtw@gmail.com>

LE_BITS_CLEARED_TO_1BYTE_8BIT() is only used by SET_BITS_TO_LE_1BYTE_8BIT(),
and its implementation simply expands to LE_P1BYTE_TO_HOST_1BYTE().
Remove LE_BITS_CLEARED_TO_1BYTE_8BIT() and replace its original invocation with the definition.

Signed-off-by: Alexis Buttler <iuseacosbtw@gmail.com>
---
 drivers/staging/rtl8723bs/include/basic_types.h | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/basic_types.h b/drivers/staging/rtl8723bs/include/basic_types.h
index d2436459cff6..e2abbf691e21 100644
--- a/drivers/staging/rtl8723bs/include/basic_types.h
+++ b/drivers/staging/rtl8723bs/include/basic_types.h
@@ -143,16 +143,11 @@
 		((((u8)__val) & BIT_LEN_MASK_8(__bitlen)) << (__bitoffset)) \
 		))
 
-#define LE_BITS_CLEARED_TO_1BYTE_8BIT(__pStart, __BitOffset, __BitLen) \
-	(\
-		LE_P1BYTE_TO_HOST_1BYTE(__pStart) \
-	)
-
 #define SET_BITS_TO_LE_1BYTE_8BIT(__pStart, __BitOffset, __BitLen, __Value) \
 { \
 	*((u8 *)(__pStart)) = \
 		EF1Byte(\
-			LE_BITS_CLEARED_TO_1BYTE_8BIT(__pStart, __BitOffset, __BitLen) \
+			LE_P1BYTE_TO_HOST_1BYTE(__pStart) \
 			| \
 			((u8)__Value) \
 		); \
-- 
2.53.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-16  1:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-16  1:19 [PATCH] rtl8723bs: Remove redundant macro in basic_types.h iuseacosbtw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox