diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-01-25 14:14:33 +0000 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-25 15:18:18 +0100 |
commit | fe80123d83d1f9abca426914f768048e601f54db (patch) | |
tree | e9db3f7b99aca5ea532101de04ea4038d6643520 /net/wireless/rdev-ops.h | |
parent | 782d2673655c05a1c0335fe0ee4cb62c23bcc231 (diff) |
mac80211: avoid a build warning
gcc cannot prove that the value of sdata->vif.type does not
change between the switch() statement and the second
comparison to NL80211_IFTYPE_AP, causing a harmless
warning.
Slightly reordering the code makes the warning go away
with no functional change.
Without this patch, building ARM at91sam9g45_defconfig with
gcc-4.6 results in:
net/mac80211/tx.c: In function 'ieee80211_subif_start_xmit':
net/mac80211/tx.c:1797:22: warning: 'chanctx_conf' may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/rdev-ops.h')
0 files changed, 0 insertions, 0 deletions