Skip to content

Commit

Permalink
x86, AMD IOMMU: remove unnecessary set_bit_string
Browse files Browse the repository at this point in the history
The set_bit_string call in the address allocator is not necessary because its
already called in iommu_area_alloc().

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Cc: iommu@lists.linux-foundation.org
Cc: bhavna.sarathy@amd.com
Cc: robert.richter@amd.com
Cc: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Joerg Roedel authored and Ingo Molnar committed Jul 4, 2008
1 parent 18d2220 commit 5f6a59d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ static unsigned long dma_ops_alloc_addresses(struct device *dev,
0, boundary_size, 0);

if (likely(address != -1)) {
set_bit_string(dom->bitmap, address, pages);
dom->next_bit = address + pages;
address <<= PAGE_SHIFT;
} else
Expand Down

0 comments on commit 5f6a59d

Please sign in to comment.