diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-01-24 16:36:57 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:42 -0500 |
commit | dff8ccd9f5ff76b7449bf833f4646f70036b2256 (patch) | |
tree | 3ee891c37bfa473800407b18c1f4b13c605539b7 /drivers | |
parent | e874e6585539f6706b8e5f96125c9fca89cce716 (diff) |
b43: Fix phy_g.c compiler warning
Fix compile warning for non-debug builds:
drivers/net/wireless/b43/phy_g.c: In function ‘b43_gphy_op_recalc_txpower’:
drivers/net/wireless/b43/phy_g.c:3195: warning: unused variable ‘dbm’
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/b43/phy_g.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_g.c b/drivers/net/wireless/b43/phy_g.c index caac4a45f0bf..88bb303ae9d5 100644 --- a/drivers/net/wireless/b43/phy_g.c +++ b/drivers/net/wireless/b43/phy_g.c | |||
@@ -3191,6 +3191,7 @@ static enum b43_txpwr_result b43_gphy_op_recalc_txpower(struct b43_wldev *dev, | |||
3191 | * Baseband attennuation. Subtract it. */ | 3191 | * Baseband attennuation. Subtract it. */ |
3192 | bbatt_delta -= 4 * rfatt_delta; | 3192 | bbatt_delta -= 4 * rfatt_delta; |
3193 | 3193 | ||
3194 | #if B43_DEBUG | ||
3194 | if (b43_debug(dev, B43_DBG_XMITPOWER)) { | 3195 | if (b43_debug(dev, B43_DBG_XMITPOWER)) { |
3195 | int dbm = pwr_adjust < 0 ? -pwr_adjust : pwr_adjust; | 3196 | int dbm = pwr_adjust < 0 ? -pwr_adjust : pwr_adjust; |
3196 | b43dbg(dev->wl, | 3197 | b43dbg(dev->wl, |
@@ -3199,6 +3200,8 @@ static enum b43_txpwr_result b43_gphy_op_recalc_txpower(struct b43_wldev *dev, | |||
3199 | (pwr_adjust < 0 ? "-" : ""), Q52_ARG(dbm), | 3200 | (pwr_adjust < 0 ? "-" : ""), Q52_ARG(dbm), |
3200 | bbatt_delta, rfatt_delta); | 3201 | bbatt_delta, rfatt_delta); |
3201 | } | 3202 | } |
3203 | #endif /* DEBUG */ | ||
3204 | |||
3202 | /* So do we finally need to adjust something in hardware? */ | 3205 | /* So do we finally need to adjust something in hardware? */ |
3203 | if ((rfatt_delta == 0) && (bbatt_delta == 0)) | 3206 | if ((rfatt_delta == 0) && (bbatt_delta == 0)) |
3204 | goto no_adjustment_needed; | 3207 | goto no_adjustment_needed; |