diff options
author | Alexey Zaytsev <alexey.zaytsev@gmail.com> | 2009-01-10 02:47:57 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-03-30 15:21:56 +0200 |
commit | e713a21d8251a4c91772f592af46407dfb0b2e4f (patch) | |
tree | a1e0140bd094ba94b964a8a8ade9396522079d61 | |
parent | e3375ac767b847127df57d186a26abf83d055982 (diff) |
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>
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5c44ed49ca9..daa36f103e7 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++; } |