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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e713a21d8251a4c91772f592af46407dfb0b2e4f;p=mv-sheeva.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 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++; }