From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Ethan Tidmore <ethantidmore06@gmail.com>
Cc: Dan Carpenter <error27@gmail.com>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] staging: rtl8723bs: Remove dead code
Date: Mon, 30 Mar 2026 19:40:42 +0200 [thread overview]
Message-ID: <2026033052-pluck-phrase-6c03@gregkh> (raw)
In-Reply-To: <20260330165510.33134-2-ethantidmore06@gmail.com>
On Mon, Mar 30, 2026 at 11:55:09AM -0500, Ethan Tidmore wrote:
> Remove commented out code and remove if statement with no body but a
> line of commented out code.
>
> Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
> ---
> drivers/staging/rtl8723bs/core/rtw_ap.c | 83 +++----------------------
> 1 file changed, 7 insertions(+), 76 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c
> index 4b4012411011..3327519dd729 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_ap.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_ap.c
> @@ -20,8 +20,6 @@ void init_mlme_ap_info(struct adapter *padapter)
> INIT_LIST_HEAD(&pacl_list->acl_node_q.queue);
> spin_lock_init(&pacl_list->acl_node_q.lock);
>
> - /* pmlmeext->bstart_bss = false; */
> -
> start_ap_mode(padapter);
> }
>
> @@ -32,8 +30,6 @@ void free_mlme_ap_info(struct adapter *padapter)
> struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
> struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
>
> - /* stop_ap_mode(padapter); */
> -
> pmlmepriv->update_bcn = false;
> pmlmeext->bstart_bss = false;
>
> @@ -377,7 +373,6 @@ void update_bmc_sta(struct adapter *padapter)
>
> if (psta) {
> psta->aid = 0;/* default set to 0 */
> - /* psta->mac_id = psta->aid+4; */
> psta->mac_id = psta->aid + 1;/* mac_id = 1 for bc/mc stainfo */
>
> pmlmeinfo->FW_sta_info[psta->mac_id].psta = psta;
> @@ -413,17 +408,14 @@ void update_bmc_sta(struct adapter *padapter)
> /* ap mode */
> rtw_hal_set_odm_var(padapter, HAL_ODM_STA_INFO, psta, true);
>
> - /* if (pHalData->fw_ractrl == true) */
> - {
> - u8 arg[4] = {0};
> + u8 arg[4] = {0};
Um, are you sure about this?
That's normally not a good thing for kernel code to look like (i.e.
putting new variable declarations in the middle of the function.
Please be more careful.
thanks,
greg k-h
next prev parent reply other threads:[~2026-03-30 17:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-30 16:55 [PATCH 0/2] staging: rtl8723bs: Cleanup rtw_ap.c Ethan Tidmore
2026-03-30 16:55 ` [PATCH 1/2] staging: rtl8723bs: Remove dead code Ethan Tidmore
2026-03-30 17:40 ` Greg Kroah-Hartman [this message]
2026-03-30 20:06 ` Dan Carpenter
2026-03-30 16:55 ` [PATCH 2/2] staging: rtl8723bs: Rename pHT_info_ie to ht_info_ie Ethan Tidmore
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=2026033052-pluck-phrase-6c03@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=error27@gmail.com \
--cc=ethantidmore06@gmail.com \
--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