iommu/dma: fix variable 'cookie' set but not used
authorQian Cai <cai@lca.pw>
Mon, 6 Jan 2020 15:27:27 +0000 (10:27 -0500)
committerJoerg Roedel <jroedel@suse.de>
Tue, 7 Jan 2020 16:08:58 +0000 (17:08 +0100)
commit55817b340a31951d23d1692db45522560b1d20f9
tree5855fe29818e856523e7558a24292887fcde534f
parentf78947c409204138a4bc0609f98e07ef9d01ac0a
iommu/dma: fix variable 'cookie' set but not used

The commit c18647900ec8 ("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: c18647900ec8 ("iommu/dma: Relax locking in iommu_dma_prepare_msi()")
Signed-off-by: Qian Cai <cai@lca.pw>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c