aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
authorIvo van Doorn <IvDoorn@gmail.com>2010-06-29 15:49:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-30 15:00:53 -0400
commit4e9e58c6bf6512a1812556188b67bada6a09c0e8 (patch)
tree868d24f24ad86f8b7125199c6a7acec2642ccac6 /drivers/net/wireless/rt2x00
parentefc7d36f0d100eb2f2db33bc287fa17646bdcd7d (diff)
rt2x00: Fix compile warning when debug disabled
CC [M] drivers/net/wireless/rt2x00/rt2800lib.o drivers/net/wireless/rt2x00/rt2800lib.c: In function 'rt2800_ampdu_action': drivers/net/wireless/rt2x00/rt2800lib.c:2821: warning: unused variable 'rt2x00dev' Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index f813b4388b63..d3cf0cc39500 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -2769,7 +2769,6 @@ static int rt2800_ampdu_action(struct ieee80211_hw *hw,
2769 struct ieee80211_sta *sta, 2769 struct ieee80211_sta *sta,
2770 u16 tid, u16 *ssn) 2770 u16 tid, u16 *ssn)
2771{ 2771{
2772 struct rt2x00_dev *rt2x00dev = hw->priv;
2773 int ret = 0; 2772 int ret = 0;
2774 2773
2775 switch (action) { 2774 switch (action) {
@@ -2787,7 +2786,7 @@ static int rt2800_ampdu_action(struct ieee80211_hw *hw,
2787 case IEEE80211_AMPDU_TX_OPERATIONAL: 2786 case IEEE80211_AMPDU_TX_OPERATIONAL:
2788 break; 2787 break;
2789 default: 2788 default:
2790 WARNING(rt2x00dev, "Unknown AMPDU action\n"); 2789 WARNING((struct rt2x00_dev *)hw->priv, "Unknown AMPDU action\n");
2791 } 2790 }
2792 2791
2793 return ret; 2792 return ret;