projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7039d11
)
iommu/amd: Remove dma_mask check from check_device()
author
Joerg Roedel
<jroedel@suse.de>
Wed, 29 Apr 2020 13:36:43 +0000
(15:36 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Tue, 5 May 2020 12:36:12 +0000
(14:36 +0200)
The check was only needed for the DMA-API implementation in the AMD
IOMMU driver, which no longer exists.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Link:
https://lore.kernel.org/r/20200429133712.31431-6-joro@8bytes.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 73b4f84cf4494e533176c93ccccf69d88b83d9ea..504f2db75edac35d4ea25abbf55a7bff9eb631d1 100644
(file)
--- a/
drivers/iommu/amd_iommu.c
+++ b/
drivers/iommu/amd_iommu.c
@@
-326,7
+326,7
@@
static bool check_device(struct device *dev)
{
int devid;
- if (!dev
|| !dev->dma_mask
)
+ if (!dev)
return false;
devid = get_device_id(dev);