Re: [PATCH 16/19] mac80211: avoid a build warning

2013-01-25 Thread Johannes Berg
On Fri, 2013-01-25 at 14:14 +, Arnd Bergmann wrote: > 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 >

[PATCH 16/19] mac80211: avoid a build warning

2013-01-25 Thread Arnd Bergmann
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

[PATCH 16/19] mac80211: avoid a build warning

2013-01-25 Thread Arnd Bergmann
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

Re: [PATCH 16/19] mac80211: avoid a build warning

2013-01-25 Thread Johannes Berg
On Fri, 2013-01-25 at 14:14 +, Arnd Bergmann wrote: 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