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)
commit7a5dbf3ab2f04905cf8468c66fcdbfb643068bcb
tree1bedb06bb178ee7ae09a0189416ff1122c5fdcea
parent83d18bdff18f680ce2c0af10a663da19f7dede93
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