staging: vchiq_2835_arm: Use PAGE_MASK macro
Use the PAGE_MASK instead of open code it. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
025f69ade9
commit
244156ca90
@ -474,7 +474,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type,
|
||||
} else {
|
||||
down_read(&task->mm->mmap_sem);
|
||||
actual_pages = get_user_pages(
|
||||
(unsigned long)buf & ~(PAGE_SIZE - 1),
|
||||
(unsigned long)buf & PAGE_MASK,
|
||||
num_pages,
|
||||
(type == PAGELIST_READ) ? FOLL_WRITE : 0,
|
||||
pages,
|
||||
|
Loading…
Reference in New Issue
Block a user