From: Vasanthakumar Thiagarajan <vasanth@atheros.com>
To: Vivek Natarajan <vnatarajan@atheros.com>
Cc: "linville@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 3/3] ath9k: Fix compilation warning.
Date: Fri, 25 Feb 2011 17:52:29 +0530 [thread overview]
Message-ID: <20110225122229.GA6064@vasanth-laptop> (raw)
In-Reply-To: <1298635263-4883-3-git-send-email-vnatarajan@atheros.com>
On Fri, Feb 25, 2011 at 05:31:03PM +0530, Vivek Natarajan wrote:
> 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
thanks, my gcc (4.4.3) does not complain this :).
>
> Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
> ---
> drivers/net/wireless/ath/ath9k/main.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
> index 9b03b5a..238fb76 100644
> --- a/drivers/net/wireless/ath/ath9k/main.c
> +++ b/drivers/net/wireless/ath/ath9k/main.c
> @@ -2135,7 +2135,7 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
> {
> #define ATH_FLUSH_TIMEOUT 60 /* ms */
> struct ath_softc *sc = hw->priv;
> - struct ath_txq *txq;
> + struct ath_txq *txq = NULL;
> struct ath_hw *ah = sc->sc_ah;
> struct ath_common *common = ath9k_hw_common(ah);
> int i, j, npend = 0;
> --
> 1.6.3.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-02-25 12:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-25 12:01 [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version Vivek Natarajan
2011-02-25 12:01 ` [PATCH 2/3] ath9k: Cancel pll_work while disabling radio Vivek Natarajan
2011-02-25 12:01 ` [PATCH 3/3] ath9k: Fix compilation warning Vivek Natarajan
2011-02-25 12:22 ` Vasanthakumar Thiagarajan [this message]
2011-03-17 0:04 ` [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version Luis R. Rodriguez
2011-03-17 18:38 ` Luis R. Rodriguez
2011-03-17 18:46 ` Luis R. Rodriguez
2011-03-18 0:39 ` Vivek Natarajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110225122229.GA6064@vasanth-laptop \
--to=vasanth@atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=vnatarajan@atheros.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).