Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 244156ca authored by Stefan Wahren's avatar Stefan Wahren Committed by Greg Kroah-Hartman
Browse files

staging: vchiq_2835_arm: Use PAGE_MASK macro



Use the PAGE_MASK instead of open code it.

Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 025f69ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -474,7 +474,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type,
	} else {
	} else {
		down_read(&task->mm->mmap_sem);
		down_read(&task->mm->mmap_sem);
		actual_pages = get_user_pages(
		actual_pages = get_user_pages(
				          (unsigned long)buf & ~(PAGE_SIZE - 1),
					  (unsigned long)buf & PAGE_MASK,
					  num_pages,
					  num_pages,
					  (type == PAGELIST_READ) ? FOLL_WRITE : 0,
					  (type == PAGELIST_READ) ? FOLL_WRITE : 0,
					  pages,
					  pages,