]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Remove the leftover of bypass support
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Apr 2019 16:50:14 +0000 (18:50 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 11 Apr 2019 15:37:21 +0000 (17:37 +0200)
commitbdda051ceb99be8fd54b78968260c37311543f5e
tree1bedb06bb178ee7ae09a0189416ff1122c5fdcea
parent105d990bcf5eab616262a932a82afbd14380136c
iommu/amd: Remove the leftover of bypass support

The AMD iommu dma_ops are only attached on a per-device basis when an
actual translation is needed.  Remove the leftover bypass support which
in parts was already broken (e.g. it always returns 0 from ->map_sg).

Use the opportunity to remove a few local variables and move assignments
into the declaration line where they were previously separated by the
bypass check.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c