提交 e713a21d 编写于 作者: A Alexey Zaytsev 提交者: Jiri Kosina

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: NAlexey Zaytsev <alexey.zaytsev@gmail.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 e3375ac7
......@@ -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++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册