lkml.org 
[lkml]   [2008]   [Sep]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 30 Sep 2008 13:10:28 +0200
FromIngo Molnar <>
SubjectRe: [PATCH 6/9] x86/iommu: change Calgary to use dma_ops register interface
* Joerg Roedel <joerg.roedel@amd.com> 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


\
 
 \ /
  Last update: 2008-09-30 13:13    [from the cache]
©2003-2008