]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a5a5fd537cb0229b1afc0cc2f3f418da2762fdd
tree4a42fd3335e7b95ca230d8ee7183aef55958f737
parent691da354e9caede0cbf77de407a8a37075ea7cdf
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