]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] IB/mthca: Move mthca_is_memfree checks
authorRoland Dreier <roland@topspin.com>
Mon, 27 Jun 2005 21:36:43 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 27 Jun 2005 22:11:45 +0000 (15:11 -0700)
commit4be6cbbdae1fab5a43125eae4e7fd264d1b11a2c
tree5e4a1d3ec8482a482caa6697cba12a819ef6aa8a
parentd2bd0acb43cabb273499718bc87f415139a3ccb5
[PATCH] IB/mthca: Move mthca_is_memfree checks

Make mthca_table_put() and mthca_table_put_range() NOPs if the device is not
mem-free, so that we don't have to have "if (mthca_is_memfree())" tests in the
callers of these functions.  This makes our code more readable and
maintainable, and saves a couple dozen bytes of text in ib_mthca.ko as well.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/hw/mthca/mthca_cq.c
drivers/infiniband/hw/mthca/mthca_memfree.c
drivers/infiniband/hw/mthca/mthca_mr.c
drivers/infiniband/hw/mthca/mthca_qp.c