Skip to content

Commit

Permalink
b43: mark some vars __maybe_unused in b43_nphy_pmu_spur_avoid
Browse files Browse the repository at this point in the history
Avoids this warning when CONFIG_B43_BCMA is not set:

  CC [M]  drivers/net/wireless/b43/phy_n.o
drivers/net/wireless/b43/phy_n.c: In function ‘b43_nphy_pmu_spur_avoid’:
drivers/net/wireless/b43/phy_n.c:4052:6: warning: unused variable ‘pmu_ctl’
drivers/net/wireless/b43/phy_n.c:4051:22: warning: unused variable ‘cc’

Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Dec 16, 2011
1 parent 5bd5e9a commit 9b682c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/b43/phy_n.c
Original file line number Diff line number Diff line change
Expand Up @@ -4048,8 +4048,8 @@ int b43_phy_initn(struct b43_wldev *dev)
/* http://bcm-v4.sipsolutions.net/802.11/PmuSpurAvoid */
static void b43_nphy_pmu_spur_avoid(struct b43_wldev *dev, bool avoid)
{
struct bcma_drv_cc *cc;
u32 pmu_ctl;
struct bcma_drv_cc __maybe_unused *cc;
u32 __maybe_unused pmu_ctl;

switch (dev->dev->bus_type) {
#ifdef CONFIG_B43_BCMA
Expand Down

0 comments on commit 9b682c7

Please sign in to comment.