* [PATCH] staging: rtl8723bs: Fix spelling mistakes in comments
[not found] <20260220131647.1922405-1-tomasz.unger.ref@yahoo.pl>
@ 2026-02-20 13:16 ` tomasz.unger
2026-02-20 18:14 ` Ethan Tidmore
0 siblings, 1 reply; 2+ messages in thread
From: tomasz.unger @ 2026-02-20 13:16 UTC (permalink / raw)
To: gregkh; +Cc: dan.carpenter, linux-staging, linux-kernel, Tomasz Unger
From: Tomasz Unger <tomasz.unger@yahoo.pl>
'alloction' -> 'allocation'
'overwirte' -> 'overwrite'
'indx' -> 'index'
Found by manual inspection.
Signed-off-by: Tomasz Unger <tomasz.unger@yahoo.pl>
---
drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
index 9284657e23c2..8f510fe91ad9 100644
--- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
@@ -572,7 +572,7 @@ s16 rtw_camid_alloc(struct adapter *adapter, struct sta_info *sta, u8 kid)
if ((((mlmeinfo->state & 0x03) == WIFI_FW_AP_STATE) || ((mlmeinfo->state & 0x03) == WIFI_FW_ADHOC_STATE))
&& !sta) {
- /* AP/Ad-hoc mode group key: static alloction to default key by key ID */
+ /* AP/Ad-hoc mode group key: static allocation to default key by key ID */
if (kid > 3) {
netdev_dbg(adapter->pnetdev,
FUNC_ADPT_FMT " group key with invalid key id:%u\n",
@@ -597,7 +597,7 @@ s16 rtw_camid_alloc(struct adapter *adapter, struct sta_info *sta, u8 kid)
i = _rtw_camid_search(adapter, addr, kid);
if (i >= 0) {
- /* Fix issue that pairwise and group key have same key id. Pairwise key first, group key can overwirte group only(ex: rekey) */
+ /* Fix issue that pairwise and group key have same key id. Pairwise key first, group key can overwrite group only(ex: rekey) */
if (sta || _rtw_camid_is_gk(adapter, i))
cam_id = i;
else
@@ -704,7 +704,7 @@ static void sort_wmm_ac_params(u32 *inx, u32 *edca)
{
u32 i, j, change_inx = false;
- /* entry indx: 0->vo, 1->vi, 2->be, 3->bk. */
+ /* entry index: 0->vo, 1->vi, 2->be, 3->bk. */
for (i = 0; i < 4; i++) {
for (j = i + 1; j < 4; j++) {
/* compare CW and AIFS */
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: rtl8723bs: Fix spelling mistakes in comments
2026-02-20 13:16 ` [PATCH] staging: rtl8723bs: Fix spelling mistakes in comments tomasz.unger
@ 2026-02-20 18:14 ` Ethan Tidmore
0 siblings, 0 replies; 2+ messages in thread
From: Ethan Tidmore @ 2026-02-20 18:14 UTC (permalink / raw)
To: tomasz.unger, gregkh; +Cc: dan.carpenter, linux-staging, linux-kernel
On Fri Feb 20, 2026 at 7:16 AM CST, tomasz.unger wrote:
> From: Tomasz Unger <tomasz.unger@yahoo.pl>
>
> 'alloction' -> 'allocation'
> 'overwirte' -> 'overwrite'
> 'indx' -> 'index'
>
> Found by manual inspection.
You don't have to write this, only say if you used a tool and what tool
it was. With that said... there are better ways to find spelling
mistakes than manual inspection, look into codespell.
>
> Signed-off-by: Tomasz Unger <tomasz.unger@yahoo.pl>
> ---
...
> if (i >= 0) {
> - /* Fix issue that pairwise and group key have same key id. Pairwise key first, group key can overwirte group only(ex: rekey) */
> + /* Fix issue that pairwise and group key have same key id. Pairwise key first, group key can overwrite group only(ex: rekey) */
While you're here, go ahead and turn this into a multi-line comment. If
unsure how, look in "Documentation/process/coding-style.rst".
Thanks,
ET
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-20 18:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260220131647.1922405-1-tomasz.unger.ref@yahoo.pl>
2026-02-20 13:16 ` [PATCH] staging: rtl8723bs: Fix spelling mistakes in comments tomasz.unger
2026-02-20 18:14 ` Ethan Tidmore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox