b43: Remove some dead code
PATCH 1/1 b43: Remove some dead code
This patch removes some dead code from the driver.
Signed-off-by Michael Buesch <[email protected]>
---
John, please queue for 2.6.27
drivers/net/wireless/b43/lo.c +2 -4
@@ -55,28 +55,26 @@ static struct b43_lo_calib * b43_find_lo/* Write the LocalOscillator Control (adjust) value-pair. */ static void b43_lo_write (struct b43_wldev *dev,struct b43_loctl *control) {struct b43_phy *phy = &dev->phy;u16 value; -u16 reg;if (B43_DEBUG ) {if (unlikely (abs (control->i) >16 ||abs (control->q) >16 )) {b43dbg (dev->wl,"Invalid LO control pair " "(I: %d, Q: %d)\n" , control->i, control->q);dump_stack ();return ; } } +B43_WARN_ON (phy->type !=B43_PHYTYPE_G ); value = (u8) (control->q); value |= ((u8) (control->i)) <<8 ; - - reg = (phy->type ==B43_PHYTYPE_B ) ?0x002F :B43_PHY_LO_CTL ; -b43_phy_write (dev, reg, value); +b43_phy_write (dev,B43_PHY_LO_CTL , value); }static u16 lo_measure_feedthrough (struct b43_wldev *dev,u16 lna,u16 pga,u16 trsw_rx) {struct b43_phy *phy = &dev->phy;
drivers/net/wireless/b43/phy.c +0 -121
145 lines not on this page · raw message