Thread (1 message) 1 message, 1 author, 2013-12-06

Re: [PATCH] wireless: fix build warning of used uninitialized variable

From: Wang Weidong <hidden>
Date: 2013-12-06 11:10:44
Also in: 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
quoted hunk
Signed-off-by: Wang Weidong <redacted>
---
 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;
 

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help