Skip to content
Commit 55817b34 authored by Qian Cai's avatar Qian Cai Committed by Joerg Roedel
Browse files

iommu/dma: fix variable 'cookie' set but not used



The commit c1864790 ("iommu/dma: Relax locking in
iommu_dma_prepare_msi()") introduced a compliation warning,

drivers/iommu/dma-iommu.c: In function 'iommu_dma_prepare_msi':
drivers/iommu/dma-iommu.c:1206:27: warning: variable 'cookie' set but
not used [-Wunused-but-set-variable]
  struct iommu_dma_cookie *cookie;
                           ^~~~~~

Fixes: c1864790 ("iommu/dma: Relax locking in iommu_dma_prepare_msi()")
Signed-off-by: default avatarQian Cai <cai@lca.pw>
Acked-by: default avatarRobin Murphy <robin.murphy@arm.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent f78947c4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment