ath9k: Use lockless variant to initialize RX fifo
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Wed, 14 Aug 2013 15:45:57 +0000 (21:15 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Aug 2013 20:08:08 +0000 (16:08 -0400)
Since the rx_fifo queue is accessed only using the various
lockless SKB queue routines, there is no need to initialize
the lock and __skb_queue_head_init() can be used.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c

index 6161d148cd0c7442e011080db65b1b3c3932acd2..653f7fc0647e32177f867baf791888e301d419a4 100644 (file)
@@ -190,7 +190,7 @@ static void ath_rx_edma_cleanup(struct ath_softc *sc)
 
 static void ath_rx_edma_init_queue(struct ath_rx_edma *rx_edma, int size)
 {
-       skb_queue_head_init(&rx_edma->rx_fifo);
+       __skb_queue_head_init(&rx_edma->rx_fifo);
        rx_edma->rx_fifo_hwsize = size;
 }