From: Joerg Roedel Date: Wed, 29 Apr 2020 13:36:43 +0000 (+0200) Subject: iommu/amd: Remove dma_mask check from check_device() X-Git-Tag: v5.10.7~2330^2~3^3~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0da9b9f5afdb56ae2aaccf79f36a358ac8454c8;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/20200429133712.31431-6-joro@8bytes.org Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 73b4f84..504f2db 100644 --- 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);