Re: [PATCH 6/9] x86/iommu: change Calgary to use dma_ops registerinterface

From: Ingo Molnar
Date: Tue Sep 30 2008 - 07:11:43 EST



* Joerg Roedel <joerg.roedel@xxxxxxx> wrote:

> +static int calgary_device_supported(struct device *dev)
> +{
> + struct iommu_table *tbl;
> +
> + tbl = find_iommu_table(dev);
> +
> + return translation_enabled(tbl);
> +}

i guess this could be written as a simple:

> +static int calgary_device_supported(struct device *dev)
> +{
> + return translation_enabled(find_iommu_table(dev));
> +}

?

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/