p54pci: fix -Wunused-but-set-variable warnings
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 7 May 2011 09:16:08 +0000 (11:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 May 2011 19:54:48 +0000 (15:54 -0400)
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>
drivers/net/wireless/p54/p54pci.c

index 0494d7b102d42cfe058578264ef6104b2fdd018e..1b753173680fe4ca2c02c7251c3e8e80f544f17c 100644 (file)
@@ -331,10 +331,9 @@ static void p54p_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
        struct p54p_ring_control *ring_control = priv->ring_control;
        struct p54p_desc *desc;
        dma_addr_t mapping;
-       u32 device_idx, idx, i;
+       u32 idx, i;
 
        spin_lock_irqsave(&priv->lock, flags);
-       device_idx = le32_to_cpu(ring_control->device_idx[1]);
        idx = le32_to_cpu(ring_control->host_idx[1]);
        i = idx % ARRAY_SIZE(ring_control->tx_data);