[PATCH 1/1] staging: rtl8723bs: use LIST_HEAD for stack-allocated list in xmit cleanup

From: Can Peng

Date: Sun Dec 14 2025 - 22:13:13 EST


Replace the separate declaration of 'tmplist' and subsequent
INIT_LIST_HEAD() call with LIST_HEAD(), which declares and
initializes the list head in a single idiomatic step. This
improves code clarity and follows common kernel coding patterns
without changing functionality.

Signed-off-by: Can Peng <pengcan@xxxxxxxxxx>
---
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c b/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c
index abb6fdfe7e1f..8c227ddc8e53 100644
--- a/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c
+++ b/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c
@@ -548,11 +548,10 @@ void rtl8723bs_free_xmit_priv(struct adapter *padapter)
struct xmit_buf *pxmitbuf;
struct __queue *pqueue = &pxmitpriv->pending_xmitbuf_queue;
struct list_head *plist, *phead;
- struct list_head tmplist;
+ LIST_HEAD(tmplist);


phead = get_list_head(pqueue);
- INIT_LIST_HEAD(&tmplist);

spin_lock_bh(&pqueue->lock);
if (!list_empty(&pqueue->queue)) {
--
2.25.1