From: Michael Buesch <mb@bu3sch.de>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] b43: fix "‘gmode’ may be used uninitialized" warning
Date: Mon, 12 Jan 2009 21:09:29 +0100 [thread overview]
Message-ID: <200901122109.30246.mb@bu3sch.de> (raw)
In-Reply-To: <1231789741-13433-2-git-send-email-linville@tuxdriver.com>
On Monday 12 January 2009 20:48:58 John W. Linville wrote:
> drivers/net/wireless/b43/main.c: In function =E2=80=98b43_op_config=E2=
=80=99:
> drivers/net/wireless/b43/main.c:3264: warning: =E2=80=98gmode=E2=80=99=
may be used uninitialized
Stupid gcc :P
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
ACK
> ---
> drivers/net/wireless/b43/main.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>=20
> diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b=
43/main.c
> index 7b31a32..c788bad 100644
> --- a/drivers/net/wireless/b43/main.c
> +++ b/drivers/net/wireless/b43/main.c
> @@ -3261,7 +3261,7 @@ static int b43_switch_band(struct b43_wl *wl, s=
truct ieee80211_channel *chan)
> struct b43_wldev *down_dev;
> struct b43_wldev *d;
> int err;
> - bool gmode;
> + bool uninitialized_var(gmode);
> int prev_status;
> =20
> /* Find a device and PHY which supports the band. */
--=20
Greetings, Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" 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:[~2009-01-12 20:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-12 19:48 [PATCH] mac80211: fix "‘ret’ may be used uninitialized" warning John W. Linville
2009-01-12 19:48 ` [PATCH] b43: fix "‘gmode’ " John W. Linville
2009-01-12 19:48 ` [PATCH] b43legacy: fix "‘up_dev’ " John W. Linville
2009-01-12 19:49 ` [PATCH] iwl3945: fix "‘power_idx’ " John W. Linville
2009-01-12 19:49 ` [PATCH] p54: fix "‘ret’ " John W. Linville
2009-01-12 20:47 ` Christian Lamparter
2009-01-12 21:35 ` [PATCH] iwl3945: fix "‘power_idx’ " reinette chatre
2009-01-12 20:11 ` [PATCH] b43legacy: fix "‘up_dev’ " Michael Buesch
2009-01-12 20:11 ` Larry Finger
2009-01-12 20:09 ` Michael Buesch [this message]
2009-01-12 20:10 ` [PATCH] b43: fix "‘gmode’ " Larry Finger
2009-01-12 20:17 ` John W. Linville
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=200901122109.30246.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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).