iommu/amd: Remove dma_mask check from check_device()
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>
This commit is contained in:
parent
7039d11b3e
commit
c0da9b9f5a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue