From: Hans de Goede <hdegoede@redhat.com>
To: Li zeming <zeming@nfschina.com>,
gregkh@linuxfoundation.org, sevinj.aghayeva@gmail.com,
fabioaiuto83@gmail.com, duoming@zju.edu.cn,
keescook@chromium.org
Cc: straube.linux@gmail.com, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging/rtl8723bs/core: remove inactive initialization
Date: Tue, 2 Aug 2022 10:59:33 +0200 [thread overview]
Message-ID: <efaa69fc-2402-9cc4-f7c8-86d6a93c6b02@redhat.com> (raw)
In-Reply-To: <20220802012513.2824-1-zeming@nfschina.com>
Hi,
On 8/2/22 03:25, Li zeming wrote:
> The allocation address of the psta pointer variable is first performed
> in the function, no initialization assignment is required, and no
> invalid pointer will appear.
>
> Signed-off-by: Li zeming <zeming@nfschina.com>
Thanks, patch looks good to me:
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Regards,
Hans
> ---
> drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
> index f2242cf2dfb4..6498fd17e1d3 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
> @@ -2521,7 +2521,7 @@ void rtw_issue_addbareq_cmd(struct adapter *padapter, struct xmit_frame *pxmitfr
> {
> u8 issued;
> int priority;
> - struct sta_info *psta = NULL;
> + struct sta_info *psta;
> struct ht_priv *phtpriv;
> struct pkt_attrib *pattrib = &pxmitframe->attrib;
> s32 bmcst = IS_MCAST(pattrib->ra);
prev parent reply other threads:[~2022-08-02 8:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-02 1:25 Li zeming
2022-08-02 8:59 ` Hans de Goede [this message]
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=efaa69fc-2402-9cc4-f7c8-86d6a93c6b02@redhat.com \
--to=hdegoede@redhat.com \
--cc=duoming@zju.edu.cn \
--cc=fabioaiuto83@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=sevinj.aghayeva@gmail.com \
--cc=straube.linux@gmail.com \
--cc=zeming@nfschina.com \
/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
all inboxes | Powered by JetHome®