Skip to content

Commit

Permalink
trivial: Fix dubious bitwise 'or' usage spotted by sparse.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Zaytsev authored and Jiri Kosina committed Mar 30, 2009
1 parent e3375ac commit e713a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand Down

0 comments on commit e713a21

Please sign in to comment.