Linux kernel staging patches
 help / color / mirror / Atom feed
* [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

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