summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-03 10:50:32 -0600
committerAlex Williamson <alex.williamson@redhat.com>2017-11-03 10:50:32 -0600
commit2c40367cbff6f9ed1efda238685837fb5f0d9e3c (patch)
tree2f85f958254f1610ce5ad4371b364df4c8552fc0 /drivers/iommu
parent07d1c91b6c649705fdd9acf58001071845ecf068 (diff)
downloadblackbird-obmc-linux-2c40367cbff6f9ed1efda238685837fb5f0d9e3c.tar.gz
blackbird-obmc-linux-2c40367cbff6f9ed1efda238685837fb5f0d9e3c.zip
iommu/amd: remove unused variable flush_addr
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 <colin.king@canonical.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/amd_iommu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 3c1a29104f0e..797e6454afd5 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -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;
OpenPOWER on IntegriCloud