From: Romy Rianata <arokigaming@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Romy Rianata <arokigaming@gmail.com>
Subject: [PATCH 2/2] staging: rtl8723bs: Fix comparison orientation
Date: Fri, 27 Mar 2026 08:22:12 +0800 [thread overview]
Message-ID: <20260327002212.33024-2-arokigaming@gmail.com> (raw)
In-Reply-To: <20260327002212.33024-1-arokigaming@gmail.com>
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@gmail.com>
---
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
next prev parent reply other threads:[~2026-03-27 0:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-27 0:22 [PATCH 1/2] staging: rtl8723bs: Remove unneeded blank lines Romy Rianata
2026-03-27 0:22 ` Romy Rianata [this message]
2026-03-27 7:42 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260327002212.33024-2-arokigaming@gmail.com \
--to=arokigaming@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox