]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:52:39 +0000 (00:52 -0400)
commitd77438ba22de7d2b16911c3b255e89cf0c95f83f
treebf1a3379385797c6b3f030175bef96f890e9be2c
parentdff7517b32fd5cf35aed2487dc6e3b3d8765758f
iommu/dma: fix variable 'cookie' set but not used

BugLink: https://bugs.launchpad.net/bugs/1866403
[ Upstream commit 55817b340a31951d23d1692db45522560b1d20f9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/iommu/dma-iommu.c