Skip to content

Commit

Permalink
iommu/amd: remove unused variable flush_addr
Browse files Browse the repository at this point in the history
Variable flush_addr is being assigned but is never read; it
is redundant and can be removed. Cleans up the clang warning:

drivers/iommu/amd_iommu.c:2388:2: warning: Value stored to 'flush_addr'
is never read

Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
  • Loading branch information
Colin Ian King authored and awilliam committed Nov 3, 2017
1 parent 07d1c91 commit 2c40367
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/iommu/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2382,11 +2382,9 @@ static void __unmap_single(struct dma_ops_domain *dma_dom,
size_t size,
int dir)
{
dma_addr_t flush_addr;
dma_addr_t i, start;
unsigned int pages;

flush_addr = dma_addr;
pages = iommu_num_pages(dma_addr, size, PAGE_SIZE);
dma_addr &= PAGE_MASK;
start = dma_addr;
Expand Down

0 comments on commit 2c40367

Please sign in to comment.