mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Oliwier Iwan <oliwieriwan@mailbox.org>
To: linux-staging@lists.linux.dev
Cc: gregkh@linuxfoundation.org, straube.linux@gmail.com,
	linux-kernel@vger.kernel.org,
	Oliwier Iwan <oliwieriwan@mailbox.org>
Subject: [PATCH 1/4] staging: rtl8723bs: fix comparison in hal_com_config_channel_plan
Date: Sat, 23 May 2026 13:30:40 +0100	[thread overview]
Message-ID: <20260523123043.22907-1-oliwieriwan@mailbox.org> (raw)

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


             reply	other threads:[~2026-05-23 12:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-23 12:30 Oliwier Iwan [this message]
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

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=20260523123043.22907-1-oliwieriwan@mailbox.org \
    --to=oliwieriwan@mailbox.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=straube.linux@gmail.com \
    /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

all inboxes | Powered by JetHome®