diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-07-21 11:37:19 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-21 14:37:38 -0400 |
commit | 41950bdfb5c530ba9b67037cc4c836677e750b6e (patch) | |
tree | 33bb96e5484fb032c3fbf94b9f50ac8c2c89e72c /drivers/net/wireless/b43/phy_g.c | |
parent | 8b74964c73ca9eed7078388d871cc7fae973cb63 (diff) |
b43: silence most sparse warnings
CHECK drivers/net/wireless/b43/main.c
drivers/net/wireless/b43/main.c:111:5: warning: symbol 'b43_modparam_pio' was not declared. Should it be static?
CHECK drivers/net/wireless/b43/phy_g.c
drivers/net/wireless/b43/phy_g.c:975:56: warning: cast truncates bits from constant value (ffff7fff becomes 7fff)
CHECK drivers/net/wireless/b43/phy_lp.c
drivers/net/wireless/b43/phy_lp.c:2701:6: warning: symbol 'b43_lpphy_op_switch_analog' was not declared. Should it be static?
drivers/net/wireless/b43/phy_lp.c:1148:30: warning: cast truncates bits from constant value (ffff1fff becomes 1fff)
drivers/net/wireless/b43/phy_lp.c:1525:30: warning: cast truncates bits from constant value (ffff1fff becomes 1fff)
drivers/net/wireless/b43/phy_lp.c:1529:30: warning: cast truncates bits from constant value (ffff1fff becomes 1fff)
CHECK drivers/net/wireless/b43/wa.c
drivers/net/wireless/b43/wa.c:385:60: warning: cast truncates bits from constant value (ffff00ff becomes ff)
drivers/net/wireless/b43/wa.c:403:55: warning: cast truncates bits from constant value (ffff00ff becomes ff)
drivers/net/wireless/b43/wa.c:405:55: warning: cast truncates bits from constant value (ffff00ff becomes ff)
drivers/net/wireless/b43/wa.c:415:71: warning: cast truncates bits from constant value (ffff0fff becomes fff)
AFAICT, none of these amount to real bugs. But this reduces warning
spam from sparse w/o significantly affecting readability of the code (IMHO).
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/phy_g.c')
-rw-r--r-- | drivers/net/wireless/b43/phy_g.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/phy_g.c b/drivers/net/wireless/b43/phy_g.c index 29bf34ced865..0dc33b65e86b 100644 --- a/drivers/net/wireless/b43/phy_g.c +++ b/drivers/net/wireless/b43/phy_g.c | |||
@@ -972,7 +972,7 @@ b43_radio_interference_mitigation_enable(struct b43_wldev *dev, int mode) | |||
972 | b43_phy_maskset(dev, 0x04A2, 0xFFF0, 0x000B); | 972 | b43_phy_maskset(dev, 0x04A2, 0xFFF0, 0x000B); |
973 | 973 | ||
974 | if (phy->rev >= 3) { | 974 | if (phy->rev >= 3) { |
975 | b43_phy_mask(dev, 0x048A, (u16)~0x8000); | 975 | b43_phy_mask(dev, 0x048A, 0x7FFF); |
976 | b43_phy_maskset(dev, 0x0415, 0x8000, 0x36D8); | 976 | b43_phy_maskset(dev, 0x0415, 0x8000, 0x36D8); |
977 | b43_phy_maskset(dev, 0x0416, 0x8000, 0x36D8); | 977 | b43_phy_maskset(dev, 0x0416, 0x8000, 0x36D8); |
978 | b43_phy_maskset(dev, 0x0417, 0xFE00, 0x016D); | 978 | b43_phy_maskset(dev, 0x0417, 0xFE00, 0x016D); |