Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

b43legacy: Remove unused b43legacy_radio_set_tx_iq()

Remove the function b43legacy_radio_set_tx_iq() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Rafa? Mi?ecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Rickard Strandqvist and committed by
Kalle Valo
d0c102f7 a2bd36c2

-20
-19
drivers/net/wireless/b43legacy/radio.c
··· 1743 1743 return value; 1744 1744 } 1745 1745 1746 - void b43legacy_radio_set_tx_iq(struct b43legacy_wldev *dev) 1747 - { 1748 - static const u8 data_high[5] = { 0x00, 0x40, 0x80, 0x90, 0xD0 }; 1749 - static const u8 data_low[5] = { 0x00, 0x01, 0x05, 0x06, 0x0A }; 1750 - u16 tmp = b43legacy_radio_read16(dev, 0x001E); 1751 - int i; 1752 - int j; 1753 - 1754 - for (i = 0; i < 5; i++) { 1755 - for (j = 0; j < 5; j++) { 1756 - if (tmp == (data_high[i] | data_low[j])) { 1757 - b43legacy_phy_write(dev, 0x0069, (i - j) << 8 | 1758 - 0x00C0); 1759 - return; 1760 - } 1761 - } 1762 - } 1763 - } 1764 - 1765 1746 int b43legacy_radio_selectchannel(struct b43legacy_wldev *dev, 1766 1747 u8 channel, 1767 1748 int synthetic_pu_workaround)
-1
drivers/net/wireless/b43legacy/radio.h
··· 92 92 void b43legacy_nrssi_hw_update(struct b43legacy_wldev *dev, u16 val); 93 93 void b43legacy_nrssi_mem_update(struct b43legacy_wldev *dev); 94 94 95 - void b43legacy_radio_set_tx_iq(struct b43legacy_wldev *dev); 96 95 u16 b43legacy_radio_calibrationvalue(struct b43legacy_wldev *dev); 97 96 98 97 #endif /* B43legacy_RADIO_H_ */