Re: Linux kernel, possible useless continue
- From: Iwo Mergler <Iwo.Mergler@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Mar 2007 13:42:29 +0000
Bin Chen wrote:
2.6.20, arch/i386/mm/init.c
Below code I am curious in (A)'s continue will bring flow to (B) but
from (B) to (A) no code updates the value of both pfn and max_low_pfn.
So the condition of 'if' will always true. Is it useless?
Not completely, it skips the remainder of the loop, but the call to
one_md_table_init still gets executed.
It just avoids another indentation level, otherwise it's equivalent
to
if (pfn < max_low_pfn) {
rest_of_the_loop
}
Kind regards,
Iwo
.
- References:
- Linux kernel, possible useless continue
- From: Bin Chen
- Linux kernel, possible useless continue
- Prev by Date: Linux kernel, possible useless continue
- Next by Date: Re: Adding a new OSI layer
- Previous by thread: Linux kernel, possible useless continue
- Next by thread: Re: Linux kernel, possible useless continue
- Index(es):