On Wed, 2005-10-05 at 18:20 +0100, Mel Gorman wrote:
> Changed to
>
> for (i = 0; (alloctype = fallback_list[i]) != -1; i++) {
>
> where i is declared a the start of the function. It's essentially the same
> as how we move through the zones fallback list so should seem familiar. Is
> that better?
Yep, at least I understand what it's doing :)
One thing you might consider is not doing the assignment in the for()
body:
for (i = 0; fallback_list[i] != -1; i++) {
alloctype = fallback_list[i];
...
-- Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]