ath9k: Remove redundant NULL assignment
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Wed, 28 Nov 2012 09:38:55 +0000 (15:08 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Nov 2012 18:38:15 +0000 (13:38 -0500)
'bf_next' is cleared using ATH_TXBUF_RESET() in both the
callsites of ath_tx_get_buffer().

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

index a0a3063dae7b28ff5724119648640b31f538f92c..90e48a0fafe5a3ca6e12be66e6b0402bdf7feaf0 100644 (file)
@@ -312,7 +312,6 @@ static struct ath_buf *ath_tx_get_buffer(struct ath_softc *sc)
        }
 
        bf = list_first_entry(&sc->tx.txbuf, struct ath_buf, list);
-       bf->bf_next = NULL;
        list_del(&bf->list);
 
        spin_unlock_bh(&sc->tx.txbuflock);