IOMMU: simplify unmap-on-error in iommu_map()
authorJan Beulich <jbeulich@suse.com>
Fri, 20 May 2022 10:21:49 +0000 (12:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 May 2022 10:21:49 +0000 (12:21 +0200)
commit09e4ac7bc071ad0549adcb24d82d8a3c4e72d05c
treece3f4371329d20cbb5fb4b8b94c27417a91c5957
parentd029b9cf13875823532ee6e4201421dba16c81d4
IOMMU: simplify unmap-on-error in iommu_map()

As of 68a8aa5d7264 ("iommu: make map and unmap take a page count,
similar to flush") there's no need anymore to have a loop here.

Suggested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/drivers/passthrough/iommu.c