public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: split chained assignment in xmit_linux.c
@ 2026-02-26  0:10 Keith Teeple
  2026-02-26  1:41 ` Greg KH
  2026-02-26  7:20 ` Dan Carpenter
  0 siblings, 2 replies; 4+ messages in thread
From: Keith Teeple @ 2026-02-26  0:10 UTC (permalink / raw)
  To: gregkh
  Cc: linux-staging, linux-kernel, s9430399, andriy.shevchenko,
	Keith Teeple

checkpatch reports that multiple assignments should be avoided.
Split the chained assignment into two separate statements.

Signed-off-by: Keith Teeple <keithrteeple@gmail.com>
---
 drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
index 0be3143fffe5..62243ab5fcd4 100644
--- a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
@@ -6,7 +6,6 @@
  ******************************************************************************/
 #include <drv_types.h>
 
-
 uint rtw_remainder_len(struct pkt_file *pfile)
 {
 	return (pfile->buf_len - ((SIZE_PTR)(pfile->cur_addr) - (SIZE_PTR)(pfile->buf_start)));
@@ -15,9 +14,10 @@ uint rtw_remainder_len(struct pkt_file *pfile)
 void _rtw_open_pktfile(struct sk_buff *pktptr, struct pkt_file *pfile)
 {
 	pfile->pkt = pktptr;
-	pfile->cur_addr = pfile->buf_start = pktptr->data;
-	pfile->pkt_len = pfile->buf_len = pktptr->len;
-
+	pfile->buf_start = pktptr->data;
+	pfile->cur_addr = pfile->buf_start;
+	pfile->buf_len = pktptr->len;
+	pfile->pkt_len = pfile->buf_len;
 	pfile->cur_buffer = pfile->buf_start;
 }
 
-- 
2.53.0


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

end of thread, other threads:[~2026-02-26  7:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-26  0:10 [PATCH] staging: rtl8723bs: split chained assignment in xmit_linux.c Keith Teeple
2026-02-26  1:41 ` Greg KH
2026-02-26  7:20 ` Dan Carpenter
2026-02-26  7:59   ` Andy Shevchenko

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