aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/lo.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-04-20 10:23:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-07 15:02:12 -0400
commitf4440e8a47e216adfe32d96a35bef6d13d498b58 (patch)
treeb214899cd8e4e42b59ac07982403f07e8cfff1b7 /drivers/net/wireless/b43/lo.c
parentf5eda47f45e90dfa38e25d569b9ac84ba94f8301 (diff)
b43: Remove some dead code
This patch removes some dead code from the driver. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/lo.c')
-rw-r--r--drivers/net/wireless/b43/lo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/lo.c b/drivers/net/wireless/b43/lo.c
index 4edee6da2b8b..4ce1e3561205 100644
--- a/drivers/net/wireless/b43/lo.c
+++ b/drivers/net/wireless/b43/lo.c
@@ -58,7 +58,6 @@ static void b43_lo_write(struct b43_wldev *dev, struct b43_loctl *control)
58{ 58{
59 struct b43_phy *phy = &dev->phy; 59 struct b43_phy *phy = &dev->phy;
60 u16 value; 60 u16 value;
61 u16 reg;
62 61
63 if (B43_DEBUG) { 62 if (B43_DEBUG) {
64 if (unlikely(abs(control->i) > 16 || abs(control->q) > 16)) { 63 if (unlikely(abs(control->i) > 16 || abs(control->q) > 16)) {
@@ -68,12 +67,11 @@ static void b43_lo_write(struct b43_wldev *dev, struct b43_loctl *control)
68 return; 67 return;
69 } 68 }
70 } 69 }
70 B43_WARN_ON(phy->type != B43_PHYTYPE_G);
71 71
72 value = (u8) (control->q); 72 value = (u8) (control->q);
73 value |= ((u8) (control->i)) << 8; 73 value |= ((u8) (control->i)) << 8;
74 74 b43_phy_write(dev, B43_PHY_LO_CTL, value);
75 reg = (phy->type == B43_PHYTYPE_B) ? 0x002F : B43_PHY_LO_CTL;
76 b43_phy_write(dev, reg, value);
77} 75}
78 76
79static u16 lo_measure_feedthrough(struct b43_wldev *dev, 77static u16 lo_measure_feedthrough(struct b43_wldev *dev,