RDMA/amso1100: use offset_in_page macro
authorGeliang Tang <geliangtang@163.com>
Sat, 3 Oct 2015 03:00:14 +0000 (11:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 12:11:19 +0000 (13:11 +0100)
commit0bc2763f569ff9533a8222bcb884ef0e22569a72
tree34e61d65641d93f4620b234420bf94b4c52b758c
parente1ab75dd6212992cdc0803315f29fdefc45735f1
RDMA/amso1100: 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/amso1100/c2_alloc.c
drivers/staging/rdma/amso1100/c2_provider.c