On Wed, Apr 10, 2019 at 06:50:14PM +0200, Christoph Hellwig wrote: > 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 <h...@lst.de> > --- > drivers/iommu/amd_iommu.c | 80 +++++++++------------------------------ > 1 file changed, 17 insertions(+), 63 deletions(-)
Nice cleanup, applied, thanks! _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu