Commit 63a9c667 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: EepromAddressSize is set but not used



EepromAddressSize in struct adapter is set but not used. Remove it and
remove the now unused function GetEEPROMSize8188E().

Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220225120843.10674-2-straube.linux@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fe5c03d4
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -534,21 +534,6 @@ void hal_notch_filter_8188e(struct adapter *adapter, bool enable)
		rtw_write8(adapter, rOFDM0_RxDSP + 1, rtw_read8(adapter, rOFDM0_RxDSP + 1) & ~BIT(1));
}

u8 GetEEPROMSize8188E(struct adapter *padapter)
{
	u8 size = 0;
	u32	cr;

	cr = rtw_read16(padapter, REG_9346CR);
	/*  6: EEPROM used is 93C46, 4: boot from E-Fuse. */
	size = (cr & BOOT_FROM_EEPROM) ? 6 : 4;

	netdev_dbg(padapter->pnetdev, "EEPROM type is %s\n",
		   size == 4 ? "E-FUSE" : "93C46");

	return size;
}

/*  */
/*  */
/*  LLT R/W/Init function */
+0 −3
Original line number Diff line number Diff line
@@ -835,9 +835,6 @@ void ReadAdapterInfo8188EU(struct adapter *Adapter)
	struct led_priv *ledpriv = &Adapter->ledpriv;
	u8 eeValue;

	/*  Read EEPROM size before call any EEPROM function */
	Adapter->EepromAddressSize = GetEEPROMSize8188E(Adapter);

	/* check system boot selection */
	eeValue = rtw_read8(Adapter, REG_9346CR);
	eeprom->EepromOrEfuse		= (eeValue & BOOT_FROM_EEPROM);
+0 −1
Original line number Diff line number Diff line
@@ -177,7 +177,6 @@ struct adapter {
	s32	bSurpriseRemoved;
	s32	bCardDisableWOHSM;

	u8	EepromAddressSize;
	u8	hw_init_completed;
	s8	signal_strength;

+0 −1
Original line number Diff line number Diff line
@@ -176,7 +176,6 @@ struct hal_data_8188e {
s32 InitLLTTable(struct adapter *padapter, u8 txpktbuf_bndy);

/*  EFuse */
u8 GetEEPROMSize8188E(struct adapter *padapter);
void Hal_EfuseParseIDCode88E(struct adapter *padapter, u8 *hwinfo);
void Hal_ReadTxPowerInfo88E(struct adapter *padapter, u8 *hwinfo,
			    bool AutoLoadFail);