diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2011-05-07 05:16:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-10 15:54:48 -0400 |
commit | 1816fcdcbbe9ff42ba1a9dac5198d18efb9d95e9 (patch) | |
tree | dc2fc38fea15f2f7e0e2baea2a31a915e470b0db /drivers/net | |
parent | 6490e334bc3af960965adfcef5acf6e5cbdd925c (diff) |
p54pci: fix -Wunused-but-set-variable warnings
p54pci.c: In function ‘p54p_tx’:
p54pci.c:334:6: warning: variable ‘device_idx’ set but not used
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/p54/p54pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c index 0494d7b102d4..1b753173680f 100644 --- a/drivers/net/wireless/p54/p54pci.c +++ b/drivers/net/wireless/p54/p54pci.c | |||
@@ -331,10 +331,9 @@ static void p54p_tx(struct ieee80211_hw *dev, struct sk_buff *skb) | |||
331 | struct p54p_ring_control *ring_control = priv->ring_control; | 331 | struct p54p_ring_control *ring_control = priv->ring_control; |
332 | struct p54p_desc *desc; | 332 | struct p54p_desc *desc; |
333 | dma_addr_t mapping; | 333 | dma_addr_t mapping; |
334 | u32 device_idx, idx, i; | 334 | u32 idx, i; |
335 | 335 | ||
336 | spin_lock_irqsave(&priv->lock, flags); | 336 | spin_lock_irqsave(&priv->lock, flags); |
337 | device_idx = le32_to_cpu(ring_control->device_idx[1]); | ||
338 | idx = le32_to_cpu(ring_control->host_idx[1]); | 337 | idx = le32_to_cpu(ring_control->host_idx[1]); |
339 | i = idx % ARRAY_SIZE(ring_control->tx_data); | 338 | i = idx % ARRAY_SIZE(ring_control->tx_data); |
340 | 339 | ||