On Fri, Nov 11, 2011 at 08:22:30PM +0100, Johannes Berg wrote: > On Fri, 2011-11-11 at 13:32 -0500, John W. Linville wrote: > > CC [M] net/mac80211/cfg.o > > net/mac80211/cfg.c: In function ‘ieee80211_probe_client’: > > net/mac80211/cfg.c:2567:7: warning: ‘qos’ may be used uninitialized in this function > > Hm, you need a better compiler ;-) How about below instead (keeping the > subject)? I kinda don't like just initialising the variable "randomly". > > johannes > > > From: Johannes Berg <johannes.berg@xxxxxxxxx> > > The warning is spurious -- if !sta we always exit without using the > unassigned qos variable, and if we do find the sta we assign it. > > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> Works for me... -- John W. Linville Someday the world will need a hero, and you linville@xxxxxxxxxxxxx might be all we have. Be ready. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html