[PATCH 2/2] staging: rtl8723bs: Fix comparison orientation
From: Romy Rianata
Date: Thu Mar 26 2026 - 20:24:52 EST
Move constant value to the right side of the comparison operator.
This follows the kernel coding style convention.
No functional change.
Signed-off-by: Romy Rianata <arokigaming@xxxxxxxxx>
---
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 279bc87c3..69538246b 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com.c
@@ -105,7 +105,7 @@ u8 hal_com_config_channel_plan(
pHalData->bDisableSWChannelPlan = false;
chnlPlan = def_channel_plan;
- if (0xFF == hw_channel_plan)
+ if (hw_channel_plan == 0xFF)
AutoLoadFail = true;
if (!AutoLoadFail) {
--
2.53.0