]> bbs.cooldavid.org Git - net-next-2.6.git/commit - lib/swiotlb.c
[PATCH] swiotlb: cleanup some code duplication cruft
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Sep 2005 21:43:32 +0000 (14:43 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 29 Sep 2005 21:43:32 +0000 (14:43 -0700)
commit8270f3f1a605c83b3aa516c1eaed209fe0884e84
treedbe49f6263658cd9b7ace81fed257009140c0b9e
parent6c654b5fdf093cd05f35f7c9c2a00182fa5636dc
[PATCH] swiotlb: cleanup some code duplication cruft

The implementations of swiotlb_sync_single_for_{cpu,device} are
identical. Likewise for swiotlb_syng_sg_for_{cpu,device}. This patch
move the guts of those functions to two new inline functions, and
calls the appropriate one from the bodies of those functions.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
lib/swiotlb.c