staging: gasket: gasket_mmap use PAGE_MASK
authorTodd Poynor <toddpoynor@google.com>
Fri, 20 Jul 2018 03:49:13 +0000 (20:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:50:35 +0000 (08:50 +0200)
commitfd5d76ab69a565ebcab94f11f185ea3dc5588249
tree4a42fd3335e7b95ca230d8ee7183aef55958f737
parent0b184cc86542cf6938e82c61b0951e799ceceb9b
staging: gasket: gasket_mmap use PAGE_MASK

gasket_mmap use PAGE_MASK, instead of performing math on PAGE_SIZE, for
simplicity and clarity.

Reported-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Simon Que <sque@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_core.c