From: Alexey Zaytsev Date: Fri, 9 Jan 2009 23:47:57 +0000 (+0300) Subject: trivial: Fix dubious bitwise 'or' usage spotted by sparse. X-Git-Tag: v2.6.30-rc1~220^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e713a21d8251a4c91772f592af46407dfb0b2e4f;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Jiri Kosina --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5c44ed4..daa36f1 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++; }