summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>2009-01-10 02:47:57 +0300
committerJiri Kosina <jkosina@suse.cz>2009-03-30 15:21:56 +0200
commite713a21d8251a4c91772f592af46407dfb0b2e4f (patch)
treea1e0140bd094ba94b964a8a8ade9396522079d61 /mm/page_alloc.c
parente3375ac767b847127df57d186a26abf83d055982 (diff)
downloadlinux-e713a21d8251a4c91772f592af46407dfb0b2e4f.tar.gz
linux-e713a21d8251a4c91772f592af46407dfb0b2e4f.tar.bz2
linux-e713a21d8251a4c91772f592af46407dfb0b2e4f.zip
trivial: Fix dubious bitwise 'or' usage spotted by sparse.
It doesn't change the semantics, but it looks like the logical 'or' was meant to be used here. Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 5c44ed49ca93..daa36f103e77 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -331,7 +331,7 @@ static int destroy_compound_page(struct page *page, unsigned long order)
for (i = 1; i < nr_pages; i++) {
struct page *p = page + i;
- if (unlikely(!PageTail(p) | (p->first_page != page))) {
+ if (unlikely(!PageTail(p) || (p->first_page != page))) {
bad_page(page);
bad++;
}