public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wireless: fix build warning of used uninitialized variable
@ 2013-12-06  4:49 Wang Weidong
  2013-12-06 11:10 ` Wang Weidong
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Weidong @ 2013-12-06  4:49 UTC (permalink / raw)
  To: johannes, linville, David Miller; +Cc: netdev, linux-wireless

nl80211.c: In function __cfg80211_wdev_from_attrs
nl80211.c:77: warning: wdev_id may be used uninitialized in this function

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;
 
-- 
1.6.0.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] wireless: fix build warning of used uninitialized variable
  2013-12-06  4:49 [PATCH] wireless: fix build warning of used uninitialized variable Wang Weidong
@ 2013-12-06 11:10 ` Wang Weidong
  0 siblings, 0 replies; 2+ messages in thread
From: Wang Weidong @ 2013-12-06 11:10 UTC (permalink / raw)
  To: johannes, linville, David Miller; +Cc: netdev, linux-wireless

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;
>  
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-06 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-06  4:49 [PATCH] wireless: fix build warning of used uninitialized variable Wang Weidong
2013-12-06 11:10 ` Wang Weidong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox