trivial: Fix dubious bitwise 'or' usage spotted by sparse.
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>
Fri, 9 Jan 2009 23:47:57 +0000 (02:47 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 30 Mar 2009 13:21:56 +0000 (15:21 +0200)
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>
mm/page_alloc.c

index 5c44ed4..daa36f1 100644 (file)
@@ -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++;
                }