[PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan
From: Oliwier Iwan
Date: Sat May 23 2026 - 08:31:35 EST
Place the constant on the right side of the comparison as preferred
by the kernel coding style.
Signed-off-by: Oliwier Iwan <oliwieriwan@xxxxxxxxxxx>
---
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