forked from Minki/linux
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:
parent
e3375ac767
commit
e713a21d82
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user