iommu/vt-d: Simplify function get_domain_for_dev()
authorJiang Liu <jiang.liu@linux.intel.com>
Wed, 19 Feb 2014 06:07:26 +0000 (14:07 +0800)
committerJoerg Roedel <joro@8bytes.org>
Tue, 4 Mar 2014 16:51:01 +0000 (17:51 +0100)
commit745f2586e78efc5c226a60cfc8e7fbd735b1c856
treebc4cb38cbf06f6df84d9e353bbed4a4f12c5b46d
parentb94e4117f8c4ffb591b1e462364d725e3a1c63c4
iommu/vt-d: Simplify function get_domain_for_dev()

Function get_domain_for_dev() is a little complex, simplify it
by factoring out dmar_search_domain_by_dev_info() and
dmar_insert_dev_info().

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/intel-iommu.c