mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 22:36:17 +01:00
wifi: mt76: mt76x0: remove dead code in mt76x0_phy_get_target_power
tx_rate can't be greater than 3 in mt76x0_phy_get_target_power routine for cck rates. Get rid of dead code. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
6f917bba87
commit
f4cfd3f95f
1 changed files with 0 additions and 3 deletions
|
|
@ -595,9 +595,6 @@ mt76x0_phy_get_target_power(struct mt76x02_dev *dev, u8 tx_mode,
|
|||
case 0:
|
||||
/* cck rates */
|
||||
tx_rate = (info[0] & 0x60) >> 5;
|
||||
if (tx_rate > 3)
|
||||
return -EINVAL;
|
||||
|
||||
*target_power = cur_power + dev->rate_power.cck[tx_rate];
|
||||
*target_pa_power = mt76x0_phy_get_rf_pa_mode(dev, 0, tx_rate);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue