]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
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 5c44ed49ca93c5a1d7a39f5570b0d1254a45de80..daa36f103e77190327fa1470900d8f95fa9b7156 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++;
                }