Skip to content

Commit aa947d7

Browse files
Ping-Ke Shihgregkh
authored andcommitted
staging: rtl8723bs: remove unused efuseValue from efuse_OneByteWrite()
The efuseValue is to store value from register EFUSE_CTRL, and set control bits including address and write bit. This is no need for RTL8723BS, so the consumer has been removed. Thus, remove these unused codes are safe. Otherwiese, clang warns: rtw_efuse.c:285:6: warning: variable 'efuseValue' set but not used [-Wunused-but-set-variable] 285 | u32 efuseValue; | ^ Signed-off-by: Ping-Ke Shih <[email protected]> Tested-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bfa0290 commit aa947d7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/staging/rtl8723bs/core/rtw_efuse.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -281,22 +281,13 @@ u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool bPseudoT
281281
{
282282
u8 tmpidx = 0;
283283
u8 bResult = false;
284-
u32 efuseValue;
285284

286285
if (bPseudoTest)
287286
return Efuse_Write1ByteToFakeContent(addr, data);
288287

289-
290288
/* -----------------e-fuse reg ctrl --------------------------------- */
291289
/* address */
292290

293-
294-
efuseValue = rtw_read32(padapter, EFUSE_CTRL);
295-
efuseValue |= (BIT21 | BIT31);
296-
efuseValue &= ~(0x3FFFF);
297-
efuseValue |= ((addr << 8 | data) & 0x3FFFF);
298-
299-
300291
/* <20130227, Kordan> 8192E MP chip A-cut had better not set 0x34[11] until B-Cut. */
301292

302293
/* <20130121, Kordan> For SMIC EFUSE specificatoin. */

0 commit comments

Comments
 (0)