* [PATCH 1/2] staging: rtl8723bs: Remove unneeded blank lines
@ 2026-03-27 0:22 Romy Rianata
2026-03-27 0:22 ` [PATCH 2/2] staging: rtl8723bs: Fix comparison orientation Romy Rianata
2026-03-27 7:42 ` [PATCH 1/2] staging: rtl8723bs: Remove unneeded blank lines Dan Carpenter
0 siblings, 2 replies; 3+ messages in thread
From: Romy Rianata @ 2026-03-27 0:22 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Romy Rianata
Remove multiple consecutive blank lines that serve no purpose.
This is a cosmetic cleanup to improve code readability.
No functional change.
Signed-off-by: Romy Rianata <arokigaming@gmail.com>
---
drivers/staging/rtl8723bs/hal/hal_com.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c
index 50370b14c..279bc87c3 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com.c
@@ -30,7 +30,6 @@ void rtw_hal_data_deinit(struct adapter *padapter)
}
}
-
void dump_chip_info(struct hal_version ChipVersion)
{
char buf[128];
@@ -71,7 +70,6 @@ void dump_chip_info(struct hal_version ChipVersion)
cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "RomVer(%d)\n", ChipVersion.ROMVer);
}
-
#define EEPROM_CHANNEL_PLAN_BY_HW_MASK 0x80
/*
@@ -292,7 +290,6 @@ u8 HwRateToMRate(u8 rate)
void HalSetBrateCfg(struct adapter *Adapter, u8 *mBratesOS, u16 *pBrateCfg)
{
u8 i, is_brate, brate;
-
for (i = 0; i < NDIS_802_11_LENGTH_RATES_EX; i++) {
is_brate = mBratesOS[i] & IEEE80211_BASIC_RATE_MASK;
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] staging: rtl8723bs: Fix comparison orientation
2026-03-27 0:22 [PATCH 1/2] staging: rtl8723bs: Remove unneeded blank lines Romy Rianata
@ 2026-03-27 0:22 ` Romy Rianata
2026-03-27 7:42 ` [PATCH 1/2] staging: rtl8723bs: Remove unneeded blank lines Dan Carpenter
1 sibling, 0 replies; 3+ messages in thread
From: Romy Rianata @ 2026-03-27 0:22 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Romy Rianata
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] staging: rtl8723bs: Remove unneeded blank lines
2026-03-27 0:22 [PATCH 1/2] staging: rtl8723bs: Remove unneeded blank lines Romy Rianata
2026-03-27 0:22 ` [PATCH 2/2] staging: rtl8723bs: Fix comparison orientation Romy Rianata
@ 2026-03-27 7:42 ` Dan Carpenter
1 sibling, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2026-03-27 7:42 UTC (permalink / raw)
To: Romy Rianata; +Cc: gregkh, linux-staging, linux-kernel
On Fri, Mar 27, 2026 at 08:22:11AM +0800, Romy Rianata wrote:
> @@ -292,7 +290,6 @@ u8 HwRateToMRate(u8 rate)
> void HalSetBrateCfg(struct adapter *Adapter, u8 *mBratesOS, u16 *pBrateCfg)
> {
> u8 i, is_brate, brate;
> -
> for (i = 0; i < NDIS_802_11_LENGTH_RATES_EX; i++) {
>
> is_brate = mBratesOS[i] & IEEE80211_BASIC_RATE_MASK;
Looks like you accidentally deleted the wrong blank line.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-27 7:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-27 0:22 [PATCH 1/2] staging: rtl8723bs: Remove unneeded blank lines Romy Rianata
2026-03-27 0:22 ` [PATCH 2/2] staging: rtl8723bs: Fix comparison orientation Romy Rianata
2026-03-27 7:42 ` [PATCH 1/2] staging: rtl8723bs: Remove unneeded blank lines Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox