All of lore.kernel.org
 help / color / mirror / Atom feed
From: iuseacosbtw@gmail.com
To: gregkh@linuxfoundation.org
Cc: linux-staging@lists.linux.dev, Alexis Buttler <iuseacosbtw@gmail.com>
Subject: [PATCH] rtl8723bs: Remove redundant macro in basic_types.h
Date: Thu, 15 Oct 2026 18:19:44 -0700	[thread overview]
Message-ID: <20261016012126.65939-1-iuseacosbtw@gmail.com> (raw)

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


             reply	other threads:[~2026-10-16  1:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-16  1:19 iuseacosbtw [this message]
2026-10-16 22:42 ` [PATCH] rtl8723bs: Remove redundant macro in basic_types.h Ethan Tidmore
2026-10-17  0:12   ` iuseacosbtw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261016012126.65939-1-iuseacosbtw@gmail.com \
    --to=iuseacosbtw@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-staging@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.