On Mon, 10 Dec 2007 07:51:20 +0100 Mattias Nissler <mattias.nissler@xxxxxx> wrote: > > +static inline int rate_control_pid_r_to_i(struct rc_pid_rateinfo *r, int rate, > > + int l) > > +{ > > + int i; > > + > > + for (i = 0; i < l; i++) > > + if (r[i].index == rate) > > + break; > > + > > + return i; > > +} > > Isn't the store-direct-rinfo-indices approach nicer? Why did you decide > for the index conversion function in favour of storing direct indices? Yesterday there was a reason, now I just forgot it. If I can't recall about it within tomorrow, I'll switch to the other approach. ;) -- Ciao Stefano - 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