Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: clean up if-else logic in odm_HWConfig.c
@ 2026-05-21 21:05 Diego Fernando Mancera Gómez
  2026-05-21 21:05 ` [PATCH] staging: sm750fb: add const to g_fbmode array Diego Fernando Mancera Gómez
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Diego Fernando Mancera Gómez @ 2026-05-21 21:05 UTC (permalink / raw)
  To: gregkh, linux-staging
  Cc: m.steinmoetzger, guojy.bj, straube.linux, error27, linux-kernel,
	Diego Fernando Mancera Gómez

---
 drivers/staging/rtl8723bs/hal/odm_HWConfig.c | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/odm_HWConfig.c b/drivers/staging/rtl8723bs/hal/odm_HWConfig.c
index c88d669cb086..2e47734a0ae9 100644
--- a/drivers/staging/rtl8723bs/hal/odm_HWConfig.c
+++ b/drivers/staging/rtl8723bs/hal/odm_HWConfig.c
@@ -228,18 +228,11 @@ static void odm_rx_phy_status_parsing(struct dm_odm_t *dm_odm,
 		odm_parsing_cfo(dm_odm, pkt_info, phy_sta_rpt->path_cfotail);
 	}
 
-	/*
-	 * UI BSS List signal strength(in percentage), make it good
-	 * looking, from 0~100.
-	 * It is assigned to the BSS List in GetValueFromBeaconOrProbeRsp().
-	 */
-	if (is_cck_rate) {
+	if (is_cck_rate)
 		phy_info->signal_strength = (u8)(odm_signal_scale_mapping(dm_odm, pwdb_all));
-	} else {
-		if (rf_rx_num != 0) {
-			phy_info->signal_strength = (u8)(odm_signal_scale_mapping(dm_odm, total_rssi /= rf_rx_num));
-		}
-	}
+	else if (rf_rx_num != 0)
+		phy_info->signal_strength = (u8)(odm_signal_scale_mapping(dm_odm, total_rssi /= rf_rx_num));
+
 }
 
 static void odm_Process_RSSIForDM(
@@ -437,4 +430,3 @@ enum hal_status ODM_ConfigBBWithHeaderFile(
 
 	return HAL_STATUS_SUCCESS;
 }
-
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-05-23 21:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-21 21:05 [PATCH] staging: rtl8723bs: clean up if-else logic in odm_HWConfig.c Diego Fernando Mancera Gómez
2026-05-21 21:05 ` [PATCH] staging: sm750fb: add const to g_fbmode array Diego Fernando Mancera Gómez
2026-05-21 21:09   ` Diego Fernando Mancera Gomez
2026-05-23 20:33   ` kernel test robot
2026-05-23 21:26   ` kernel test robot
2026-05-21 21:05 ` [PATCH] x86/build: Add custom extraversion identifier to Makefile Diego Fernando Mancera Gómez
2026-05-22  4:47 ` [PATCH] staging: rtl8723bs: clean up if-else logic in odm_HWConfig.c Ahmet Sezgin Duran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox