* [PATCH] staging: rtl8723bs: Split multiple assignments in _rtw_open_pktfile
@ 2026-07-15 17:00 Amin Madani
2026-07-16 6:31 ` Dan Carpenter
0 siblings, 1 reply; 3+ messages in thread
From: Amin Madani @ 2026-07-15 17:00 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Amin Madani
In _rtw_open_pktfile(), multiple variables are assigned on the same
line. According to the Linux kernel coding style, multiple assignments
on a single line should be avoided. Split them into separate lines to
improve readability.
Signed-off-by: Amin Madani <aminmadani112@gmail.com>
---
drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
index 4260ed5f4..598d94f1c 100644
--- a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
@@ -15,8 +15,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] 3+ messages in thread
* Re: [PATCH] staging: rtl8723bs: Split multiple assignments in _rtw_open_pktfile
2026-07-15 17:00 [PATCH] staging: rtl8723bs: Split multiple assignments in _rtw_open_pktfile Amin Madani
@ 2026-07-16 6:31 ` Dan Carpenter
2026-07-16 8:45 ` Mohammadamin
0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2026-07-16 6:31 UTC (permalink / raw)
To: Amin Madani; +Cc: gregkh, linux-staging, linux-kernel
On Wed, Jul 15, 2026 at 08:30:03PM +0330, Amin Madani wrote:
> In _rtw_open_pktfile(), multiple variables are assigned on the same
> line. According to the Linux kernel coding style, multiple assignments
> on a single line should be avoided. Split them into separate lines to
> improve readability.
>
> Signed-off-by: Amin Madani <aminmadani112@gmail.com>
> ---
> drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
> index 4260ed5f4..598d94f1c 100644
> --- a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
> +++ b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
> @@ -15,8 +15,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;
https://lore.kernel.org/all/aZ_0OratIkUBNHmy@stanley.mountain/
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: rtl8723bs: Split multiple assignments in _rtw_open_pktfile
2026-07-16 6:31 ` Dan Carpenter
@ 2026-07-16 8:45 ` Mohammadamin
0 siblings, 0 replies; 3+ messages in thread
From: Mohammadamin @ 2026-07-16 8:45 UTC (permalink / raw)
To: Dan Carpenter; +Cc: gregkh, linux-staging, linux-kernel
Hi Dan,
Thank you for the feedback. I have just submitted a v2 of this patch
with the direct assignments as suggested.
Regards,
Amin
On Thu, Jul 16, 2026 at 10:01 AM Dan Carpenter <error27@gmail.com> wrote:
>
> On Wed, Jul 15, 2026 at 08:30:03PM +0330, Amin Madani wrote:
> > In _rtw_open_pktfile(), multiple variables are assigned on the same
> > line. According to the Linux kernel coding style, multiple assignments
> > on a single line should be avoided. Split them into separate lines to
> > improve readability.
> >
> > Signed-off-by: Amin Madani <aminmadani112@gmail.com>
> > ---
> > drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 6 ++++--
> > 1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
> > index 4260ed5f4..598d94f1c 100644
> > --- a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
> > +++ b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
> > @@ -15,8 +15,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;
>
> https://lore.kernel.org/all/aZ_0OratIkUBNHmy@stanley.mountain/
>
> regards,
> dan carpenter
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-16 8:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15 17:00 [PATCH] staging: rtl8723bs: Split multiple assignments in _rtw_open_pktfile Amin Madani
2026-07-16 6:31 ` Dan Carpenter
2026-07-16 8:45 ` Mohammadamin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox