Messages in this thread Patch in this message | | | Date | Mon, 30 Nov 2009 04:12:02 -0500 | From | Amerigo Wang <> | Subject | [Patch] percpu: remove two suspicious break statements |
| |
These two break statements seem to be very suspicious, they are at the end of the statements inside the loop. Remove them.
Signed-off-by: WANG Cong <amwang@redhat.com> Cc: Tejun Heo <tj@kernel.org>
--- diff --git a/mm/percpu.c b/mm/percpu.c index 5adfc26..dbcfee8 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -917,7 +917,6 @@ static void pcpu_depopulate_chunk(struct pcpu_chunk *chunk, int off, int size) pcpu_for_each_unpop_region(chunk, rs, re, page_start, page_end) { if (rs == page_start && re == page_end) return; - break; } /* immutable chunks can't be depopulated */ @@ -972,7 +971,6 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk, int off, int size) pcpu_for_each_pop_region(chunk, rs, re, page_start, page_end) { if (rs == page_start && re == page_end) goto clear; - break; } /* need to allocate and map pages, this chunk can't be immutable */
| |