[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091130091501.4507.28683.sendpatchset@localhost.localdomain>
Date: Mon, 30 Nov 2009 04:12:02 -0500
From: Amerigo Wang <amwang@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: Tejun Heo <tj@...nel.org>, akpm@...ux-foundation.org,
Amerigo Wang <amwang@...hat.com>
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@...hat.com>
Cc: Tejun Heo <tj@...nel.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 */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists