linux-mainline/net/wireless
Johannes Berg d64d373ffe 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>
2011-11-11 12:32:51 -05:00
..
.gitignore
chan.c
core.c nl80211: advertise device AP SME 2011-11-09 16:12:38 -05:00
core.h cfg80211/mac80211: allow management TX to not wait for ACK 2011-11-09 16:13:54 -05:00
db.txt
debugfs.c
debugfs.h
ethtool.c
ethtool.h
genregdb.awk
ibss.c
Kconfig
lib80211_crypt_ccmp.c wireless: Remove unnecessary OOM logging messages 2011-09-13 15:45:02 -04:00
lib80211_crypt_tkip.c wireless: Remove unnecessary OOM logging messages 2011-09-13 15:45:02 -04:00
lib80211_crypt_wep.c wireless: Remove unnecessary OOM logging messages 2011-09-13 15:45:02 -04:00
lib80211.c
Makefile
mesh.c {nl,cfg,mac}80211: let userspace make meshif mesh gate 2011-08-24 13:59:43 -04:00
mlme.c cfg80211/mac80211: allow management TX to not wait for ACK 2011-11-09 16:13:54 -05:00
nl80211.c nl80211: fix compiler warning 2011-11-11 12:32:51 -05:00
nl80211.h cfg80211: add event for unexpected 4addr frames 2011-11-09 16:13:52 -05:00
radiotap.c
reg.c Merge branch 'master' of git://git.infradead.org/users/linville/wireless 2011-09-20 14:11:55 -04:00
reg.h cfg80211: hold reg_mutex when updating regulatory 2011-09-14 13:26:39 -04:00
regdb.h
scan.c cfg80211: merge in beacon ies of hidden bss. 2011-11-11 12:32:47 -05:00
sme.c wireless: Do not allow disabled channel in scan request 2011-09-20 14:43:48 -04:00
sysfs.c
sysfs.h
util.c mac80211: data path modification for TDLS peers 2011-09-30 15:57:09 -04:00
wext-compat.c mac80211/cfg80211: report monitor channel in wireless extensions 2011-11-11 12:32:50 -05:00
wext-compat.h
wext-core.c
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c