dect
/
linux-2.6
Archived
13
0
Fork 0

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 <alexey.zaytsev@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
Alexey Zaytsev 2009-01-10 02:47:57 +03:00 committed by Jiri Kosina
parent e3375ac767
commit e713a21d82
1 changed files with 1 additions and 1 deletions

View 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++;
}