From: Roland Dreier Date: Mon, 27 Jun 2005 21:36:43 +0000 (-0700) Subject: [PATCH] IB/mthca: Move mthca_is_memfree checks X-Git-Tag: v2.6.13-rc1~51^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a03a5a67b243e9a24805ee18272ad25e5b2ca92c;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed