From: Dan Carpenter <error27@gmail.com>
To: Ethan Tidmore <ethantidmore06@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
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 23:06:23 +0300 [thread overview]
Message-ID: <acrXv3nNcI6oXgjK@stanley.mountain> (raw)
In-Reply-To: <20260330165510.33134-2-ethantidmore06@gmail.com>
On Mon, Mar 30, 2026 at 11:55:09AM -0500, Ethan Tidmore wrote:
> @@ -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};
>
Now there is a declaration in the middle of the code which isn't
normal style unless it's a __cleanup pointer. I would probably
just leave this comment as-is so it serves as documentation that
something weird and historicaly is going on here.
regards,
dan carpenter
> - arg[0] = psta->mac_id;
> - arg[1] = psta->raid;
> - arg[2] = 0;
> - arg[3] = psta->init_rate;
> + arg[0] = psta->mac_id;
> + arg[1] = psta->raid;
> + arg[2] = 0;
> + arg[3] = psta->init_rate;
>
> - rtw_hal_add_ra_tid(padapter, tx_ra_bitmap, arg, 0);
> - }
> + rtw_hal_add_ra_tid(padapter, tx_ra_bitmap, arg, 0);
>
> rtw_sta_media_status_rpt(padapter, psta, 1);
>
next prev parent reply other threads:[~2026-03-30 20:06 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
2026-03-30 20:06 ` Dan Carpenter [this message]
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=acrXv3nNcI6oXgjK@stanley.mountain \
--to=error27@gmail.com \
--cc=ethantidmore06@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