From: Al Viro <[email protected]>

Signed-off-by: Al Viro <[email protected]>
---
 drivers/infiniband/hw/qib/qib_qp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/infiniband/hw/qib/qib_qp.c 
b/drivers/infiniband/hw/qib/qib_qp.c
index 0daa083..f7c0908b 100644
--- a/drivers/infiniband/hw/qib/qib_qp.c
+++ b/drivers/infiniband/hw/qib/qib_qp.c
@@ -102,7 +102,7 @@ static u32 credit_table[31] = {
 
 static void get_map_page(struct qib_qpn_table *qpt, struct qpn_map *map)
 {
-       unsigned long page = (unsigned long)get_zeroed_page(GFP_KERNEL);
+       void *page = get_zeroed_page(GFP_KERNEL);
 
        /*
         * Free the page if someone raced with us installing it.
@@ -110,9 +110,9 @@ static void get_map_page(struct qib_qpn_table *qpt, struct 
qpn_map *map)
 
        spin_lock(&qpt->lock);
        if (map->page)
-               free_page((void *)page);
+               free_page(page);
        else
-               map->page = (void *)page;
+               map->page = page;
        spin_unlock(&qpt->lock);
 }
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to