Commit 55817b3
iommu/dma: fix variable 'cookie' set but not used
The commit c186479 ("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: c186479 ("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>1 parent f78947c commit 55817b3
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
1206 | | - | |
1207 | 1206 | | |
1208 | 1207 | | |
1209 | 1208 | | |
| |||
1212 | 1211 | | |
1213 | 1212 | | |
1214 | 1213 | | |
1215 | | - | |
1216 | | - | |
1217 | 1214 | | |
1218 | 1215 | | |
1219 | 1216 | | |
| |||
0 commit comments