From: Ivan Safonov Date: Mon, 20 Jun 2016 05:27:37 +0000 (+0700) Subject: staging: rtl8188eu: remove efuse_max variable in hal_EfusePartialWriteCheck X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=28d040fb7243926a1e485dc5f6dee1a2ea8cb6ab;p=deliverable%2Flinux.git staging: rtl8188eu: remove efuse_max variable in hal_EfusePartialWriteCheck This variable does not used after assigning value. Signed-off-by: Ivan Safonov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_efuse.c b/drivers/staging/rtl8188eu/core/rtw_efuse.c index eee0e131a2c3..d18ea6cb01d9 100644 --- a/drivers/staging/rtl8188eu/core/rtw_efuse.c +++ b/drivers/staging/rtl8188eu/core/rtw_efuse.c @@ -769,11 +769,10 @@ static bool hal_EfusePartialWriteCheck(struct adapter *pAdapter, u8 efuseType, u bool bRet = false; u8 i, efuse_data = 0, cur_header = 0; u8 matched_wden = 0, badworden = 0; - u16 startAddr = 0, efuse_max_available_len = 0, efuse_max = 0; + u16 startAddr = 0, efuse_max_available_len = 0; struct pgpkt curPkt; EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_AVAILABLE_EFUSE_BYTES_BANK, (void *)&efuse_max_available_len); - EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_EFUSE_REAL_CONTENT_LEN, (void *)&efuse_max); rtw_hal_get_hwreg(pAdapter, HW_VAR_EFUSE_BYTES, (u8 *)&startAddr); startAddr %= EFUSE_REAL_CONTENT_LEN;