Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: fix if-statement alignment and line continuation in rtw_ap.c
@ 2025-07-20 17:34 Bruce Qin
  2025-07-24  9:29 ` Greg KH
  0 siblings, 1 reply; 12+ messages in thread
From: Bruce Qin @ 2025-07-20 17:34 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, Bruce Qin

This patch addresses three checkpatch-reported style issues in a multiline
if-statement:

- Moved '&&' to the end of the previous line to follow logical continuation style
- Fixed indentation to align with the opening parenthesis of the expression
- Avoided ending a line with an open parenthesis '('

These changes improve readability and conform to Linux kernel coding conventions.
No functional changes.

Signed-off-by: Bruce Qin <bqn9090@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_ap.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c
index 383a6f7c06f4..838d2feed883 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ap.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ap.c
@@ -258,10 +258,9 @@ void expire_timeout_chk(struct adapter *padapter)
 		} else {
 			/* TODO: Aging mechanism to digest frames in sleep_q to */
 			/* avoid running out of xmitframe */
-			if (psta->sleepq_len > (NR_XMITFRAME / pstapriv->asoc_list_cnt)
-				&& padapter->xmitpriv.free_xmitframe_cnt < ((
-					NR_XMITFRAME / pstapriv->asoc_list_cnt
-				) / 2)
+			if (psta->sleepq_len > (NR_XMITFRAME / pstapriv->asoc_list_cnt) &&
+			    padapter->xmitpriv.free_xmitframe_cnt <
+					((NR_XMITFRAME / pstapriv->asoc_list_cnt) / 2)
 			)
 				wakeup_sta_to_xmit(padapter, psta);
 		}
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-07-25 18:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-20 17:34 [PATCH] staging: rtl8723bs: fix if-statement alignment and line continuation in rtw_ap.c Bruce Qin
2025-07-24  9:29 ` Greg KH
2025-07-24 17:17   ` Bruce Qin
2025-07-24 17:17     ` [PATCH v2] staging: rtl8723bs: fix if-statement alignment and line continuation in rtw_ap.c Bruce Qin
2025-07-24 18:38       ` Greg KH
2025-07-24 19:23   ` Bruce Qin
2025-07-24 19:25   ` Bruce Qin
2025-07-24 19:30   ` Bruce Qin
2025-07-25  4:40     ` Greg KH
2025-07-25 17:19       ` [PATCH v3] " Bruce Qin
2025-07-25 17:45         ` [PATCH v4] " Bruce Qin
2025-07-25 18:02           ` [PATCH v5] " Bruce Qin

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