|
@@ -925,7 +925,7 @@ static int efuse_pg_packet_write(struct ieee80211_hw *hw,
|
|
|
struct rtl_priv *rtlpriv = rtl_priv(hw);
|
|
|
struct pgpkt_struct target_pkt;
|
|
|
u8 write_state = PG_STATE_HEADER;
|
|
|
- int continual = true, dataempty = true, result = true;
|
|
|
+ int continual = true, result = true;
|
|
|
u16 efuse_addr = 0;
|
|
|
u8 efuse_data;
|
|
|
u8 target_word_cnts = 0;
|
|
@@ -953,7 +953,6 @@ static int efuse_pg_packet_write(struct ieee80211_hw *hw,
|
|
|
(EFUSE_MAX_SIZE - EFUSE_OOB_PROTECT_BYTES))) {
|
|
|
|
|
|
if (write_state == PG_STATE_HEADER) {
|
|
|
- dataempty = true;
|
|
|
badworden = 0x0F;
|
|
|
RTPRINT(rtlpriv, FEEPROM, EFUSE_PG,
|
|
|
("efuse PG_STATE_HEADER\n"));
|
|
@@ -1176,13 +1175,12 @@ static u16 efuse_get_current_size(struct ieee80211_hw *hw)
|
|
|
{
|
|
|
int continual = true;
|
|
|
u16 efuse_addr = 0;
|
|
|
- u8 hoffset, hworden;
|
|
|
+ u8 hworden;
|
|
|
u8 efuse_data, word_cnts;
|
|
|
|
|
|
while (continual && efuse_one_byte_read(hw, efuse_addr, &efuse_data)
|
|
|
&& (efuse_addr < EFUSE_MAX_SIZE)) {
|
|
|
if (efuse_data != 0xFF) {
|
|
|
- hoffset = (efuse_data >> 4) & 0x0F;
|
|
|
hworden = efuse_data & 0x0F;
|
|
|
word_cnts = efuse_calculate_word_cnts(hworden);
|
|
|
efuse_addr = efuse_addr + (word_cnts * 2) + 1;
|