* [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan
@ 2026-05-23 12:30 Oliwier Iwan
2026-05-23 12:30 ` [PATCH 2/4] staging: rtl8723bs: remove space before tab in block comments Oliwier Iwan
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Oliwier Iwan @ 2026-05-23 12:30 UTC (permalink / raw)
To: linux-staging; +Cc: gregkh, straube.linux, linux-kernel, Oliwier Iwan
Place the constant on the right side of the comparison as preferred
by the kernel coding style.
Signed-off-by: Oliwier Iwan <oliwieriwan@mailbox.org>
---
drivers/staging/rtl8723bs/hal/hal_com.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c
index 728a2171fbcb..5473dca13695 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com.c
@@ -107,7 +107,7 @@ u8 hal_com_config_channel_plan(
pHalData->bDisableSWChannelPlan = false;
chnlPlan = def_channel_plan;
- if (0xFF == hw_channel_plan)
+ if (hw_channel_plan == 0xFF)
auto_load_fail = true;
if (!auto_load_fail) {
--
2.54.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/4] staging: rtl8723bs: remove space before tab in block comments
2026-05-23 12:30 [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan Oliwier Iwan
@ 2026-05-23 12:30 ` Oliwier Iwan
2026-05-23 12:30 ` [PATCH 3/4] staging: rtl8723bs: align '*' on each line of " Oliwier Iwan
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Oliwier Iwan @ 2026-05-23 12:30 UTC (permalink / raw)
To: linux-staging; +Cc: gregkh, straube.linux, linux-kernel, Oliwier Iwan
Remove the extra space before tab in the BK/BE/VI/VO queue
mapping comments to fix checkpatch warnings.
Signed-off-by: Oliwier Iwan <oliwieriwan@mailbox.org>
---
drivers/staging/rtl8723bs/hal/hal_com.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c
index 5473dca13695..1130511859ab 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com.c
@@ -362,7 +362,7 @@ static void _TwoOutPipeMapping(struct adapter *padapter, bool bWIFICfg)
if (bWIFICfg) { /* WMM */
- /* BK, BE, VI, VO, BCN, CMD, MGT, HIGH, HCCA */
+ /* BK, BE, VI, VO, BCN, CMD, MGT, HIGH, HCCA */
/* 0, 1, 0, 1, 0, 0, 0, 0, 0 }; */
/* 0:ep_0 num, 1:ep_1 num */
@@ -403,7 +403,7 @@ static void _ThreeOutPipeMapping(struct adapter *padapter, bool bWIFICfg)
if (bWIFICfg) { /* for WMM */
- /* BK, BE, VI, VO, BCN, CMD, MGT, HIGH, HCCA */
+ /* BK, BE, VI, VO, BCN, CMD, MGT, HIGH, HCCA */
/* 1, 2, 1, 0, 0, 0, 0, 0, 0 }; */
/* 0:H, 1:N, 2:L */
@@ -420,7 +420,7 @@ static void _ThreeOutPipeMapping(struct adapter *padapter, bool bWIFICfg)
} else { /* typical setting */
- /* BK, BE, VI, VO, BCN, CMD, MGT, HIGH, HCCA */
+ /* BK, BE, VI, VO, BCN, CMD, MGT, HIGH, HCCA */
/* 2, 2, 1, 0, 0, 0, 0, 0, 0 }; */
/* 0:H, 1:N, 2:L */
--
2.54.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] staging: rtl8723bs: align '*' on each line of block comments
2026-05-23 12:30 [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan Oliwier Iwan
2026-05-23 12:30 ` [PATCH 2/4] staging: rtl8723bs: remove space before tab in block comments Oliwier Iwan
@ 2026-05-23 12:30 ` Oliwier Iwan
2026-05-23 12:30 ` [PATCH 4/4] staging: rtl8723bs: fix indentation of closing brace Oliwier Iwan
2026-05-25 6:36 ` [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan Dan Carpenter
3 siblings, 0 replies; 5+ messages in thread
From: Oliwier Iwan @ 2026-05-23 12:30 UTC (permalink / raw)
To: linux-staging; +Cc: gregkh, straube.linux, linux-kernel, Oliwier Iwan
Add missing space before '*' on each line of block comments
to fix checkpatch warnings.
Signed-off-by: Oliwier Iwan <oliwieriwan@mailbox.org>
---
drivers/staging/rtl8723bs/hal/hal_com.c | 28 ++++++++++++-------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c
index 1130511859ab..665bfec5ffdd 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com.c
@@ -478,10 +478,10 @@ void rtw_init_hal_com_default_value(struct adapter *Adapter)
}
/*
-* C2H event format:
-* Field TRIGGER CONTENT CMD_SEQ CMD_LEN CMD_ID
-* BITS [127:120] [119:16] [15:8] [7:4] [3:0]
-*/
+ * C2H event format:
+ * Field TRIGGER CONTENT CMD_SEQ CMD_LEN CMD_ID
+ * BITS [127:120] [119:16] [15:8] [7:4] [3:0]
+ */
void c2h_evt_clear(struct adapter *adapter)
{
@@ -489,10 +489,10 @@ void c2h_evt_clear(struct adapter *adapter)
}
/*
-* C2H event format:
-* Field TRIGGER CMD_LEN CONTENT CMD_SEQ CMD_ID
-* BITS [127:120] [119:112] [111:16] [15:8] [7:0]
-*/
+ * C2H event format:
+ * Field TRIGGER CMD_LEN CONTENT CMD_SEQ CMD_ID
+ * BITS [127:120] [119:112] [111:16] [15:8] [7:0]
+ */
s32 c2h_evt_read_88xx(struct adapter *adapter, u8 *buf)
{
s32 ret = _FAIL;
@@ -526,9 +526,9 @@ s32 c2h_evt_read_88xx(struct adapter *adapter, u8 *buf)
clear_evt:
/*
- * Clear event to notify FW we have read the command.
- * If this field isn't clear, the FW won't update the next command message.
- */
+ * Clear event to notify FW we have read the command.
+ * If this field isn't clear, the FW won't update the next command message.
+ */
c2h_evt_clear(adapter);
exit:
return ret;
@@ -625,9 +625,9 @@ void SetHwReg(struct adapter *adapter, u8 variable, u8 *val)
break;
case HW_VAR_DM_FUNC_CLR:
/*
- * input is already a mask to clear function
- * don't invert it again! George, Lucas@20130513
- */
+ * input is already a mask to clear function
+ * don't invert it again! George, Lucas@20130513
+ */
odm->SupportAbility &= *((u32 *)val);
break;
case HW_VAR_AMPDU_MIN_SPACE:
--
2.54.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] staging: rtl8723bs: fix indentation of closing brace
2026-05-23 12:30 [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan Oliwier Iwan
2026-05-23 12:30 ` [PATCH 2/4] staging: rtl8723bs: remove space before tab in block comments Oliwier Iwan
2026-05-23 12:30 ` [PATCH 3/4] staging: rtl8723bs: align '*' on each line of " Oliwier Iwan
@ 2026-05-23 12:30 ` Oliwier Iwan
2026-05-25 6:36 ` [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan Dan Carpenter
3 siblings, 0 replies; 5+ messages in thread
From: Oliwier Iwan @ 2026-05-23 12:30 UTC (permalink / raw)
To: linux-staging; +Cc: gregkh, straube.linux, linux-kernel, Oliwier Iwan
Fix misaligned closing brace in SetHalODMVar to use
tabs instead of spaces for correct indentation.
Signed-off-by: Oliwier Iwan <oliwieriwan@mailbox.org>
---
drivers/staging/rtl8723bs/hal/hal_com.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c
index 665bfec5ffdd..4b4bfa80e37c 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com.c
@@ -736,7 +736,7 @@ void SetHalODMVar(
ODM_CmnInfoPtrArrayHook(podmpriv, ODM_CMNINFO_STA_STATUS, psta->mac_id, NULL);
/* spin_unlock_bh(&pHalData->odm_stainfo_lock); */
- }
+ }
}
break;
case HAL_ODM_P2P_STATE:
--
2.54.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan
2026-05-23 12:30 [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan Oliwier Iwan
` (2 preceding siblings ...)
2026-05-23 12:30 ` [PATCH 4/4] staging: rtl8723bs: fix indentation of closing brace Oliwier Iwan
@ 2026-05-25 6:36 ` Dan Carpenter
3 siblings, 0 replies; 5+ messages in thread
From: Dan Carpenter @ 2026-05-25 6:36 UTC (permalink / raw)
To: Oliwier Iwan; +Cc: linux-staging, gregkh, straube.linux, linux-kernel
On Sat, May 23, 2026 at 01:30:40PM +0100, Oliwier Iwan wrote:
> Place the constant on the right side of the comparison as preferred
> by the kernel coding style.
>
> Signed-off-by: Oliwier Iwan <oliwieriwan@mailbox.org>
> ---
You're not working against the currently staging-devel tree.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-05-25 6:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-23 12:30 [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan Oliwier Iwan
2026-05-23 12:30 ` [PATCH 2/4] staging: rtl8723bs: remove space before tab in block comments Oliwier Iwan
2026-05-23 12:30 ` [PATCH 3/4] staging: rtl8723bs: align '*' on each line of " Oliwier Iwan
2026-05-23 12:30 ` [PATCH 4/4] staging: rtl8723bs: fix indentation of closing brace Oliwier Iwan
2026-05-25 6:36 ` [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox