IB/mthca: Cosmetic: use the ALIGN macro

Use the ALIGN macro to simplify some rounding code.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

authored by Michael S. Tsirkin and committed by Roland Dreier c063a068 17e2e819

+3 -2
+3 -2
drivers/infiniband/hw/mthca/mthca_cmd.c
··· 727 727 * system pages needed. 728 728 */ 729 729 dev->fw.arbel.fw_pages = 730 - (dev->fw.arbel.fw_pages + (1 << (PAGE_SHIFT - 12)) - 1) >> 731 - (PAGE_SHIFT - 12); 730 + ALIGN(dev->fw.arbel.fw_pages, PAGE_SIZE >> 12) >> 731 + (PAGE_SHIFT - 12); 732 732 733 733 mthca_dbg(dev, "Clear int @ %llx, EQ arm @ %llx, EQ set CI @ %llx\n", 734 734 (unsigned long long) dev->fw.arbel.clr_int_base, ··· 1445 1445 * pages needed. 1446 1446 */ 1447 1447 *aux_pages = (*aux_pages + (1 << (PAGE_SHIFT - 12)) - 1) >> (PAGE_SHIFT - 12); 1448 + *aux_pages = ALIGN(*aux_pages, PAGE_SIZE >> 12) >> (PAGE_SHIFT - 12); 1448 1449 1449 1450 return 0; 1450 1451 }