staging: rdma: hfi1: Replace ALIGN with PAGE_ALIGN
[linux-block.git] / drivers / staging / rdma / hfi1 / user_sdma.c
index d152126a15be34d0f31aacc11b3b701529959375..9d4f5d6aaf33ebf1c76544311f7d1095336d1dc0 100644 (file)
@@ -413,8 +413,7 @@ int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt, struct file *fp)
        if (!cq)
                goto cq_nomem;
 
-       memsize = ALIGN(sizeof(*cq->comps) * hfi1_sdma_comp_ring_size,
-                       PAGE_SIZE);
+       memsize = PAGE_ALIGN(sizeof(*cq->comps) * hfi1_sdma_comp_ring_size);
        cq->comps = vmalloc_user(memsize);
        if (!cq->comps)
                goto cq_comps_nomem;