diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-10-08 16:21:49 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-10-13 18:39:35 +0300 |
commit | 69585ef9bb9f326baaad27d7579b3dfaf42bf1e7 (patch) | |
tree | 7bda26fe9cfa6493dc09fe433f4f6965eba062f0 /drivers/net/wireless/mediatek/mt76/mt76x0/pci.c | |
parent | 5155938d8a0fe0e0251435cae02539e81fb8e407 (diff) | |
download | linux-69585ef9bb9f326baaad27d7579b3dfaf42bf1e7.tar.xz |
mt76x0: pci: fix set external PA I/O current
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 <lorenzo.bianconi@redhat.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x0/pci.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x0/pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c b/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c index 10845f37af37..cc8af17dc9c7 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c @@ -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); } } |