From: Christian Lamparter <chunkeey@web.de>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] p54: fix "‘ret’ may be used uninitialized" warning
Date: Mon, 12 Jan 2009 21:47:39 +0100 [thread overview]
Message-ID: <200901122147.39055.chunkeey@web.de> (raw)
In-Reply-To: <1231789741-13433-5-git-send-email-linville@tuxdriver.com>
On Monday 12 January 2009 20:49:01 John W. Linville wrote:
> drivers/net/wireless/p54/p54common.c: In function =E2=80=98p54_config=
=E2=80=99:
> drivers/net/wireless/p54/p54common.c:1853: warning: =E2=80=98ret=E2=80=
=99 may be used uninitialized in this function
>=20
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
ACK
> ---
> drivers/net/wireless/p54/p54common.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>=20
> diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wirel=
ess/p54/p54common.c
> index cba89ed..c6a370f 100644
> --- a/drivers/net/wireless/p54/p54common.c
> +++ b/drivers/net/wireless/p54/p54common.c
> @@ -1850,7 +1850,7 @@ static void p54_remove_interface(struct ieee802=
11_hw *dev,
> =20
> static int p54_config(struct ieee80211_hw *dev, u32 changed)
> {
> - int ret;
> + int ret =3D 0;
> struct p54_common *priv =3D dev->priv;
> struct ieee80211_conf *conf =3D &dev->conf;
> =20
--
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:47 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 [this message]
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 ` [PATCH] b43: fix "‘gmode’ " Michael Buesch
2009-01-12 20:10 ` 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=200901122147.39055.chunkeey@web.de \
--to=chunkeey@web.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.