staging: rdma: hfi1: driver: Replace IS_ALIGNED with PAGE_ALIGNED
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Fri, 4 Mar 2016 17:10:17 +0000 (22:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commitf53896608128f311b7c4982fa479ab7400be3164
tree4aadf4914580f1200bbb6df02ed3ca862604efb1
parent844499175518d2d847ec0ca9fc133e8e03f11101
staging: rdma: hfi1: driver: Replace IS_ALIGNED with PAGE_ALIGNED

mm.h contains a helper function PAGE_ALIGNED which tests whether
an address is aligned to PAGE_SIZE instead of using
IS_ALIGNED(expression, PAGE_SIZE)

This change was made with the help of the following Coccinelle
semantic patch:
//<smpl>
@@
expression e;
symbol PAGE_SIZE;
@@
(
- ALIGN(e, PAGE_SIZE)
+ PAGE_ALIGN(e)
|
- IS_ALIGNED(e, PAGE_SIZE)
+ PAGE_ALIGNED(e)
)
//</smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/driver.c