linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Remove unused local variable in rtw_efuse.c
@ 2021-11-05 16:53 Saurav Girepunje
  2021-11-05 16:53 ` [PATCH 1/2] staging: rtl8723bs: core: remove unused variable pAdapter Saurav Girepunje
  2021-11-05 16:53 ` [PATCH 2/2] staging: rtl8723bs: core: remove unused local variable padapter Saurav Girepunje
  0 siblings, 2 replies; 3+ messages in thread
From: Saurav Girepunje @ 2021-11-05 16:53 UTC (permalink / raw)
  To: gregkh, fabioaiuto83, saurav.girepunje, dan.carpenter,
	shreyaskumar1035, ross.schm.dev, linux-staging, linux-kernel

This patch series to remove the unused local variable in rtw_efuse.c

Remove the unused variable padapter from Efuse_Read1ByteFromFakeContent.
Remove the unused variable padapter from Efuse_Write1ByteToFakeContent.

Saurav Girepunje (2):
  staging: rtl8723bs: core: remove unused variable pAdapter
  staging: rtl8723bs: core: remove unused local variable padapter

 drivers/staging/rtl8723bs/core/rtw_efuse.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

--
2.33.0


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

* [PATCH 1/2] staging: rtl8723bs: core: remove unused variable pAdapter
  2021-11-05 16:53 [PATCH 0/2] Remove unused local variable in rtw_efuse.c Saurav Girepunje
@ 2021-11-05 16:53 ` Saurav Girepunje
  2021-11-05 16:53 ` [PATCH 2/2] staging: rtl8723bs: core: remove unused local variable padapter Saurav Girepunje
  1 sibling, 0 replies; 3+ messages in thread
From: Saurav Girepunje @ 2021-11-05 16:53 UTC (permalink / raw)
  To: gregkh, fabioaiuto83, saurav.girepunje, dan.carpenter,
	shreyaskumar1035, ross.schm.dev, linux-staging, linux-kernel

Remove the unused variable pAdapter from Efuse_Read1ByteFromFakeContent
This variable is not used in the function.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_efuse.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c
index 430e2d81924c..bd057e041a08 100644
--- a/drivers/staging/rtl8723bs/core/rtw_efuse.c
+++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c
@@ -31,10 +31,7 @@ u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN] = {0};
 #define EFUSE_CTRL			REG_EFUSE_CTRL		/*  E-Fuse Control. */
 
 static bool
-Efuse_Read1ByteFromFakeContent(
-	struct adapter *padapter,
-	u16 	Offset,
-	u8 *Value)
+Efuse_Read1ByteFromFakeContent(u16 Offset, u8 *Value)
 {
 	if (Offset >= EFUSE_MAX_HW_SIZE)
 		return false;
@@ -250,7 +247,7 @@ bool		bPseudoTest)
 	u8 readbyte;
 
 	if (bPseudoTest)
-		return Efuse_Read1ByteFromFakeContent(padapter, addr, data);
+		return Efuse_Read1ByteFromFakeContent(addr, data);
 
 	/*  <20130121, Kordan> For SMIC EFUSE specificatoin. */
 	/* 0x34[11]: SW force PGMEN input of efuse to high. (for the bank selected by 0x34[9:8]) */
-- 
2.33.0


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

* [PATCH 2/2] staging: rtl8723bs: core: remove unused local variable padapter
  2021-11-05 16:53 [PATCH 0/2] Remove unused local variable in rtw_efuse.c Saurav Girepunje
  2021-11-05 16:53 ` [PATCH 1/2] staging: rtl8723bs: core: remove unused variable pAdapter Saurav Girepunje
@ 2021-11-05 16:53 ` Saurav Girepunje
  1 sibling, 0 replies; 3+ messages in thread
From: Saurav Girepunje @ 2021-11-05 16:53 UTC (permalink / raw)
  To: gregkh, fabioaiuto83, saurav.girepunje, dan.carpenter,
	shreyaskumar1035, ross.schm.dev, linux-staging, linux-kernel

Remove the unused variable padapter from Efuse_Write1ByteToFakeContent
This variable is not used in the function.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_efuse.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c
index bd057e041a08..3d3c77273026 100644
--- a/drivers/staging/rtl8723bs/core/rtw_efuse.c
+++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c
@@ -43,10 +43,7 @@ Efuse_Read1ByteFromFakeContent(u16 Offset, u8 *Value)
 }
 
 static bool
-Efuse_Write1ByteToFakeContent(
-	struct adapter *padapter,
-	u16 	Offset,
-	u8 Value)
+Efuse_Write1ByteToFakeContent(u16 Offset, u8 Value)
 {
 	if (Offset >= EFUSE_MAX_HW_SIZE)
 		return false;
@@ -288,7 +285,7 @@ u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool bPseudoT
 	u32 efuseValue = 0;
 
 	if (bPseudoTest)
-		return Efuse_Write1ByteToFakeContent(padapter, addr, data);
+		return Efuse_Write1ByteToFakeContent(addr, data);
 
 
 	/*  -----------------e-fuse reg ctrl --------------------------------- */
-- 
2.33.0


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

end of thread, other threads:[~2021-11-05 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 16:53 [PATCH 0/2] Remove unused local variable in rtw_efuse.c Saurav Girepunje
2021-11-05 16:53 ` [PATCH 1/2] staging: rtl8723bs: core: remove unused variable pAdapter Saurav Girepunje
2021-11-05 16:53 ` [PATCH 2/2] staging: rtl8723bs: core: remove unused local variable padapter Saurav Girepunje

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).