Skip to content

Commit

Permalink
mt76x0: pci: fix set external PA I/O current
Browse files Browse the repository at this point in the history
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/mediatek/mt76/mt76x0/pci.c: In function 'mt76x0e_register_device':
drivers/net/wireless/mediatek/mt76/mt76x0/pci.c:107:8: warning:
 variable 'data' set but not used [-Wunused-but-set-variable]

It seems correct value to write is 'data'

Fixes: 2b2cb40bcd7d ("mt76x0: pci: add hw initialization at bootstrap")
Acked-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: YueHaibing <[email protected]>
  • Loading branch information
YueHaibing authored and nbd168 committed Oct 9, 2018
1 parent 5e6907f commit acfc5a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mt76x0/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ static int mt76x0e_register_device(struct mt76x02_dev *dev)
if (val & MT_EE_NIC_CONF_0_PA_IO_CURRENT) {
u32 data;

/* set external external PA I/O
/* set external PA I/O
* current to 16mA
*/
data = mt76_rr(dev, 0x11c);
val |= 0xc03;
mt76_wr(dev, 0x11c, val);
data |= 0xc03;
mt76_wr(dev, 0x11c, data);
}
}

Expand Down

0 comments on commit acfc5a9

Please sign in to comment.