public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Wang Weidong <wangweidong1@huawei.com>
To: <johannes@sipsolutions.net>, <linville@tuxdriver.com>,
	David Miller <davem@davemloft.net>
Cc: <netdev@vger.kernel.org>, <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] wireless: fix build warning of used uninitialized variable
Date: Fri, 6 Dec 2013 19:10:44 +0800	[thread overview]
Message-ID: <52A1B0B4.9060703@huawei.com> (raw)
In-Reply-To: <52A15777.5000508@huawei.com>

On 2013/12/6 12:49, Wang Weidong wrote:
> nl80211.c: In function __cfg80211_wdev_from_attrs
> nl80211.c:77: warning: wdev_id may be used uninitialized in this function
> 

Sorry. My complier version is too low so that I got this warning.
Just ignore it.

Regards.
Wang

> Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
> ---
>  net/wireless/nl80211.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
> index 138dc3b..6894229 100644
> --- a/net/wireless/nl80211.c
> +++ b/net/wireless/nl80211.c
> @@ -74,7 +74,7 @@ __cfg80211_wdev_from_attrs(struct net *netns, struct nlattr **attrs)
>  	struct wireless_dev *result = NULL;
>  	bool have_ifidx = attrs[NL80211_ATTR_IFINDEX];
>  	bool have_wdev_id = attrs[NL80211_ATTR_WDEV];
> -	u64 wdev_id;
> +	u64 wdev_id = 0;
>  	int wiphy_idx = -1;
>  	int ifidx = -1;
>  
> 



      reply	other threads:[~2013-12-06 11:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-06  4:49 [PATCH] wireless: fix build warning of used uninitialized variable Wang Weidong
2013-12-06 11:10 ` Wang Weidong [this message]

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=52A1B0B4.9060703@huawei.com \
    --to=wangweidong1@huawei.com \
    --cc=davem@davemloft.net \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=netdev@vger.kernel.org \
    /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