[openib-general] [PATCH] mthca_cmd small cleanup
Michael S. Tsirkin
mst at mellanox.co.il
Thu Jan 12 01:54:54 PST 2006
The following results in a slight code size reduction.
Signed-off-by: Ishai Rabinovitz <ishai at mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
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
More information about the general
mailing list