summaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg2011-11-10 09:44:46 +0100
committerJohn W. Linville2011-11-11 18:32:51 +0100
commitd64d373ffed925f29c3e68a8d6f45677a622054e (patch)
tree8fb0699d7e249e2862f11d85dc858d22e2a13999 /include/net/cfg80211.h
parentmac80211: make sure hw_key exists before checking its flags (diff)
downloadkernel-qcow2-linux-d64d373ffed925f29c3e68a8d6f45677a622054e.tar.gz
kernel-qcow2-linux-d64d373ffed925f29c3e68a8d6f45677a622054e.tar.xz
kernel-qcow2-linux-d64d373ffed925f29c3e68a8d6f45677a622054e.zip
nl80211: fix compiler warning
John reported the following warning: net/wireless/nl80211.c: In function ‘nl80211_tx_mgmt’: net/wireless/nl80211.c:5286:8: warning: ‘hdr’ may be used uninitialized in this function Evidently, his version of gcc isn't able to see that when "msg" is initialized, "hdr" must also be. My gcc, 4.6.1, can actually see that and doesn't warn. Simply initialize the variable to NULL. That means if the compiler was ever right we'll crash though so isn't really optimal since it may hide warnings from the compiler when somebody modifies this code in the future. Reported-by: John Linville <linville@tuxdriver.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
0 files changed, 0 insertions, 0 deletions