Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99700278 authored by Zefir Kurtisi's avatar Zefir Kurtisi Committed by John W. Linville
Browse files

ath9k: remove dead code



Clean up some orphaned code lines containing
* unused variables (not referenced / write-only)
* non-implemented function prototypes

Signed-off-by: default avatarZefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 35bcd591
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -245,7 +245,6 @@ static int ar5008_hw_set_channel(struct ath_hw *ah, struct ath9k_channel *chan)
	REG_WRITE(ah, AR_PHY(0x37), reg32);
	REG_WRITE(ah, AR_PHY(0x37), reg32);


	ah->curchan = chan;
	ah->curchan = chan;
	ah->curchan_rad_index = -1;


	return 0;
	return 0;
}
}
+0 −1
Original line number Original line Diff line number Diff line
@@ -152,7 +152,6 @@ static int ar9002_hw_set_channel(struct ath_hw *ah, struct ath9k_channel *chan)
	REG_WRITE(ah, AR_PHY_SYNTH_CONTROL, reg32);
	REG_WRITE(ah, AR_PHY_SYNTH_CONTROL, reg32);


	ah->curchan = chan;
	ah->curchan = chan;
	ah->curchan_rad_index = -1;


	return 0;
	return 0;
}
}
+0 −2
Original line number Original line Diff line number Diff line
@@ -5060,8 +5060,6 @@ static void ath9k_hw_ar9300_set_txpower(struct ath_hw *ah,
			i, targetPowerValT2[i]);
			i, targetPowerValT2[i]);
	}
	}


	ah->txpower_limit = regulatory->max_power_level;

	/* Write target power array to registers */
	/* Write target power array to registers */
	ar9003_hw_tx_power_regwrite(ah, targetPowerValT2);
	ar9003_hw_tx_power_regwrite(ah, targetPowerValT2);
	ar9003_hw_calibration_apply(ah, chan->channel);
	ar9003_hw_calibration_apply(ah, chan->channel);
+0 −1
Original line number Original line Diff line number Diff line
@@ -152,7 +152,6 @@ static int ar9003_hw_set_channel(struct ath_hw *ah, struct ath9k_channel *chan)
	REG_WRITE(ah, AR_PHY_65NM_CH0_SYNTH7, reg32);
	REG_WRITE(ah, AR_PHY_65NM_CH0_SYNTH7, reg32);


	ah->curchan = chan;
	ah->curchan = chan;
	ah->curchan_rad_index = -1;


	return 0;
	return 0;
}
}
+0 −1
Original line number Original line Diff line number Diff line
@@ -445,7 +445,6 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah)
		AR_STA_ID1_MCAST_KSRCH;
		AR_STA_ID1_MCAST_KSRCH;
	if (AR_SREV_9100(ah))
	if (AR_SREV_9100(ah))
		ah->sta_id1_defaults |= AR_STA_ID1_AR9100_BA_FIX;
		ah->sta_id1_defaults |= AR_STA_ID1_AR9100_BA_FIX;
	ah->enable_32kHz_clock = DONT_USE_32KHZ;
	ah->slottime = ATH9K_SLOT_TIME_9;
	ah->slottime = ATH9K_SLOT_TIME_9;
	ah->globaltxtimeout = (u32) -1;
	ah->globaltxtimeout = (u32) -1;
	ah->power_mode = ATH9K_PM_UNDEFINED;
	ah->power_mode = ATH9K_PM_UNDEFINED;
Loading