staging: rtl8723bs: Remove unneeded blank lines
PATCH 1/2 staging: rtl8723bs: Remove unneeded blank lines
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 <[email protected]>
--- drivers/staging/rtl8723bs/hal/hal_com.c | 3 --- 1 file changed, 3 deletions(-)
drivers/staging/rtl8723bs/hal/hal_com.c +0 -3
@@ -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 ;
Signature · 1 line
2.53.0
PATCH 2/2 staging: rtl8723bs: Fix comparison orientation
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 <[email protected]>
--- drivers/staging/rtl8723bs/hal/hal_com.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/hal/hal_com.c +1 -1
@@ -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) {
Signature · 1 line
2.53.0
drivers/staging/rtl8723bs/hal/hal_com.c u8 HwRateToMRate(u8 rate) · line 295
Quoted 8 lines · Romy Rianata
drivers/staging/rtl8723bs/hal/hal_com.c +0
-1@@ -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