The following results in a slight code size reduction.

Signed-off-by: Ishai Rabinovitz <[EMAIL PROTECTED]>
Signed-off-by: Michael S. Tsirkin <[EMAIL PROTECTED]>

Index: last_stable/drivers/infiniband/hw/mthca/mthca_cmd.c
===================================================================
--- last_stable.orig/drivers/infiniband/hw/mthca/mthca_cmd.c    2006-01-09 
17:02:57.000000000 +0200
+++ last_stable/drivers/infiniband/hw/mthca/mthca_cmd.c 2006-01-11 
16:36:39.000000000 +0200
@@ -606,7 +606,7 @@
                        err = -EINVAL;
                        goto out;
                }
-               for (i = 0; i < mthca_icm_size(&iter) / (1 << lg); ++i) {
+               for (i = 0; i < mthca_icm_size(&iter) >> lg; ++i) {
                        if (virt != -1) {
                                pages[nent * 2] = cpu_to_be64(virt);
                                virt += 1 << lg;

-- 
MST
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to