mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 14:12:51 +00:00
ath9k: Fix compilation warning.
Initialize txq to avoid this warning: drivers/net/wireless/ath/ath9k/main.c: In function ‘ath9k_flush’: drivers/net/wireless/ath/ath9k/main.c:2138: warning: ‘txq’ may be used uninitialized in this function Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
7e3514fdc0
commit
08f6c85223
@ -2133,7 +2133,7 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
|
|||||||
{
|
{
|
||||||
#define ATH_FLUSH_TIMEOUT 60 /* ms */
|
#define ATH_FLUSH_TIMEOUT 60 /* ms */
|
||||||
struct ath_softc *sc = hw->priv;
|
struct ath_softc *sc = hw->priv;
|
||||||
struct ath_txq *txq;
|
struct ath_txq *txq = NULL;
|
||||||
struct ath_hw *ah = sc->sc_ah;
|
struct ath_hw *ah = sc->sc_ah;
|
||||||
struct ath_common *common = ath9k_hw_common(ah);
|
struct ath_common *common = ath9k_hw_common(ah);
|
||||||
int i, j, npend = 0;
|
int i, j, npend = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user