iommu/amd: Simplify allocation in irq_remapping_alloc()
authorJoerg Roedel <jroedel@suse.de>
Thu, 13 Aug 2015 09:07:25 +0000 (11:07 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Aug 2015 17:49:05 +0000 (19:49 +0200)
commita130e69f28ba1d180242b581a15d09f06dad9227
treecfa6e3591dfcccb5c5c3c12d474d37bdca9e1d3a
parentf7644cbfcdf03528f0f450f3940c4985b2291f49
iommu/amd: Simplify allocation in irq_remapping_alloc()

Allocate the irq data only in the loop.

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