IB/mthca: Fix memory leak of multicast group structures

Convert "/ (1 << lg)" to ">> lg" for a slight code size reduction.

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-24 (-24)
function old new delta
mthca_map_cmd 613 589 -24

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

authored by Ishai Rabinovitz and committed by Roland Dreier 59f174fa 988bd503

+1 -1
+1 -1
drivers/infiniband/hw/mthca/mthca_cmd.c
··· 606 606 err = -EINVAL; 607 607 goto out; 608 608 } 609 - for (i = 0; i < mthca_icm_size(&iter) / (1 << lg); ++i) { 609 + for (i = 0; i < mthca_icm_size(&iter) >> lg; ++i) { 610 610 if (virt != -1) { 611 611 pages[nent * 2] = cpu_to_be64(virt); 612 612 virt += 1 << lg;