On Thu, 2014-01-09 at 11:17 +0200, Ilan Peer wrote: > +unsigned int ieee80211_get_num_supported_channels(struct wiphy *wiphy) > +{ > + enum ieee80211_band band; > + unsigned int n_channels; Seems nicer to do the = 0 here rather than in the loop? > + for (band = 0, n_channels = 0; band < IEEE80211_NUM_BANDS; band++) johannes -- 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