From: Dan Carpenter <error27@gmail.com>
To: Amin Madani <aminmadani112@gmail.com>
Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8723bs: Split multiple assignments in _rtw_open_pktfile
Date: Thu, 16 Jul 2026 09:31:37 +0300 [thread overview]
Message-ID: <alh6ydMadNsz5x66@stanley.mountain> (raw)
In-Reply-To: <20260715170003.94569-1-aminmadani112@gmail.com>
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
next prev parent reply other threads:[~2026-07-16 6:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 17:00 [PATCH] staging: rtl8723bs: Split multiple assignments in _rtw_open_pktfile Amin Madani
2026-07-16 6:31 ` Dan Carpenter [this message]
2026-07-16 8:45 ` Mohammadamin
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=alh6ydMadNsz5x66@stanley.mountain \
--to=error27@gmail.com \
--cc=aminmadani112@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox