Skip to contentSkip to conversation

staging: rtl8723bs: remove unnecessary comment separator lines

PATCH New Ignacio Peña 1 participant 3 messages Jul 16, 2025 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/3 staging: rtl8723bs: remove unnecessary comment separator lines

From: Ignacio Pena <[email protected]>

Remove the long dashed separator lines from block comments as they don't follow kernel coding style, as suggested by Greg KH.

---
Changes in v3:
- Fixed compilation issue by keeping the closing */ marker

Changes in v2:
- Removed separator lines instead of just fixing the format

 drivers/staging/rtl8723bs/core/rtw_efuse.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +6 -6
index 7a74b011d..abc123def 100644
@@ -70,7 +70,7 @@ Efuse_Write1ByteToFakeContent(u16 Offset, u8 Value)
  * When			Who		Remark
  * 11/17/2008	MHC		Create Version 0.
  *
- *---------------------------------------------------------------------------*/
+ */
 void
 Efuse_PowerSwitch(
 struct adapter *padapter,
@@ -163,7 +163,7 @@ EFUSE_GetEfuseDefinition(
  * When			Who		Remark
  * 09/23/2008	MHC		Copy from WMAC.
  *
- *---------------------------------------------------------------------------*/
+ */
 u8
 EFUSE_Read1Byte(
 struct adapter *Adapter,
@@ -313,7 +313,7 @@ Efuse_WordEnableDataWrite(struct adapter *padapter,
  * When			Who		Remark
  * 11/11/2008	MHC		Create Version 0.
  *
- *---------------------------------------------------------------------------*/
+ */
 void
 Efuse_ReadAllMap(
 	struct adapter *padapter,
@@ -350,7 +350,7 @@ void Efuse_ReadAllMap(struct adapter *padapter, u8 efuseType, u8 *Efuse, bool bP
  * When			Who		Remark
  * 11/12/2008	MHC		Create Version 0.
  *
- *---------------------------------------------------------------------------*/
+ */
 static void efuse_ShadowRead1Byte(struct adapter *padapter, u16 Offset, u8 *Value)
 {
 	struct eeprom_priv *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
@@ -396,7 +396,7 @@ static void efuse_ShadowRead4Byte(struct adapter *padapter, u16 Offset, u32 *Val
  * When			Who		Remark
  * 11/13/2008	MHC		Create Version 0.
  *
- *---------------------------------------------------------------------------*/
+ */
 void EFUSE_ShadowMapUpdate(struct adapter *padapter, u8 efuseType, bool bPseudoTest)
 {
 	struct eeprom_priv *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
@@ -429,7 +429,7 @@ void EFUSE_ShadowMapUpdate(struct adapter *padapter, u8 efuseType, bool bPseudoT
  * When			Who		Remark
  * 11/12/2008	MHC		Create Version 0.
  *
- *---------------------------------------------------------------------------*/
+ */
 void EFUSE_ShadowRead(struct adapter *padapter, u8 Type, u16 Offset, u32 *Value)
 {
 	if (Type == 1)
Signature · 1 line
2.39.5
#1 lore raw

PATCH v3 2/3 staging: rtl8723bs: add missing blank line after declaration

From: Ignacio Pena <[email protected]>

Fix checkpatch warning by adding required blank line after variable declaration in Efuse_CalculateWordCnts function.

---
Changes in v3:
- Added version changelog as requested by Greg's bot

Changes in v2:
- Split from larger patch that addressed multiple issues

 drivers/staging/rtl8723bs/core/rtw_efuse.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/rtl8723bs/core/rtw_efuse.c +1 -0
index abc123def..def456abc 100644
@@ -84,6 +84,7 @@ u8
 Efuse_CalculateWordCnts(u8 word_en)
 {
 	u8 word_cnts = 0;
+
 	if (!(word_en & BIT(0)))
 		word_cnts++; /*  0 : write enable */
 	if (!(word_en & BIT(1)))
Signature · 1 line
2.39.5
#2 lore raw

PATCH v3 3/3 staging: rtl8723bs: remove unnecessary commented code

In reply to Ignacio Peña

From: Ignacio Pena <[email protected]>

Remove commented out code that serves no purpose, as suggested by Greg KH.

---
Changes in v3:
- Added version changelog as requested by Greg's bot

Changes in v2:
- Split from larger patch that addressed multiple issues

 drivers/staging/rtl8723bs/core/rtw_cmd.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/rtl8723bs/core/rtw_cmd.c +0 -3
index 437934dd2..abc789def 100644
@@ -1317,9 +1317,6 @@ u8 rtw_lps_ctrl_wk_cmd(struct adapter *padapter, u8 lps_ctrl_type, u8 enqueue)
 	/* struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(padapter); */
 	u8 res = _SUCCESS;
 
-	/* if (!pwrctrlpriv->bLeisurePs) */
-	/* 	return res; */
-
 	if (enqueue) {
 		ph2c = rtw_zmalloc(sizeof(struct cmd_obj));
 		if (!ph2c) {
Signature · 1 line
2.39.5