VT-d: drop bogus checks
authorJan Beulich <jbeulich@suse.com>
Mon, 15 Oct 2012 15:39:32 +0000 (17:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Oct 2012 15:39:32 +0000 (17:39 +0200)
commit00485d573cc9a655ae7ce5d278a0cc27acf31a0f
tree8b3fba89e4e94df5410045e0e7a2fdd896c2bdeb
parenta902c12ee45fc9389eb8fe54eeddaf267a555c58
VT-d: drop bogus checks

There were a number of cases where an "iommu" retrieved got passed to
another function before being NULL-checked. While this by itself was
not a problem as the called function did the checks, it is confusing to
the reader and redundant in several cases (particularly with NULL-
checking the return value of iommu_ir_ctrl()). Drop the redundant
checks (also ones where the sole caller of a function did the checking
already), and at once make the three similar functions proper inline
instead of extern ones (they were prototyped in the wrong header file
anyway, so would have needed touching sooner or later).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/iommu.h
xen/drivers/passthrough/vtd/utils.c
xen/include/xen/iommu.h