IB/ipath: use offset_in_page macro
authorGeliang Tang <geliangtang@163.com>
Sat, 3 Oct 2015 02:43:11 +0000 (10:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 12:11:19 +0000 (13:11 +0100)
commite1ab75dd6212992cdc0803315f29fdefc45735f1
tree48e02c4a55912d74b1691648c6b81c7fe03bddb1
parente260e404ba45422e816eb3af01687870097745ac
IB/ipath: 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/ipath/ipath_user_sdma.c