diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 76d349cc11ed..905f4570b279 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -348,7 +348,7 @@ static bool check_device(struct device *dev) { int devid; - if (!dev || !dev->dma_mask) + if (!dev) return false; devid = get_device_id(dev);