IB/hfi1: use offset_in_page macro
authorGeliang Tang <geliangtang@163.com>
Sat, 3 Oct 2015 02:34:59 +0000 (10:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 12:11:19 +0000 (13:11 +0100)
commite260e404ba45422e816eb3af01687870097745ac
tree1932e8d216506a5706173c5617bffbc97345ce28
parent3a81fc20eadcf193a4517fd5ee862c3d465aceb3
IB/hfi1: use offset_in_page macro

Use offset_in_page macro instead of (addr & ~PAGE_MASK).

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/file_ops.c