On Wed January 19 2011 20:07:28 you wrote: > On Wed, Jan 19, 2011 at 4:20 AM, Bruno Randolf <br1@xxxxxxxxxxx> wrote: > > Simplify confusing code and get rid of an unnecessary variable. > > > > Signed-off-by: Bruno Randolf <br1@xxxxxxxxxxx> > > > > > > @@ -285,8 +285,8 @@ ath5k_copy_channels(struct ath5k_hw *ah, > > return 0; > > } > > > > - for (i = 0, count = 0; i < size && max > 0; i++) { > > - ch = i + 1 ; > > + count = 0; > > + for (ch = 1; ch < size && count <= max; ch++) { > > Should be <= size now, right? And maybe rename size to max_channel > or something like that. Oh, yeah. Will fix. bruno -- 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