Re: [PATCH 2/5] iommu: remove redundant NULL check before dma_ops_domain_free().

2013-02-13 Thread Joerg Roedel
On Tue, Feb 12, 2013 at 05:01:50AM +0100, Cyril Roelandt wrote: > dma_ops_domain_free on a NULL pointer is a no-op, so the NULL check in > amd_iommu_init_dma_ops() can be removed. > > Signed-off-by: Cyril Roelandt > --- > drivers/iommu/amd_iommu.c |3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH 2/5] iommu: remove redundant NULL check before dma_ops_domain_free().

2013-02-13 Thread Joerg Roedel
On Tue, Feb 12, 2013 at 05:01:50AM +0100, Cyril Roelandt wrote: dma_ops_domain_free on a NULL pointer is a no-op, so the NULL check in amd_iommu_init_dma_ops() can be removed. Signed-off-by: Cyril Roelandt tipec...@gmail.com --- drivers/iommu/amd_iommu.c |3 +-- 1 file changed, 1

[PATCH 2/5] iommu: remove redundant NULL check before dma_ops_domain_free().

2013-02-11 Thread Cyril Roelandt
dma_ops_domain_free on a NULL pointer is a no-op, so the NULL check in amd_iommu_init_dma_ops() can be removed. Signed-off-by: Cyril Roelandt --- drivers/iommu/amd_iommu.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iommu/amd_iommu.c

[PATCH 2/5] iommu: remove redundant NULL check before dma_ops_domain_free().

2013-02-11 Thread Cyril Roelandt
dma_ops_domain_free on a NULL pointer is a no-op, so the NULL check in amd_iommu_init_dma_ops() can be removed. Signed-off-by: Cyril Roelandt tipec...@gmail.com --- drivers/iommu/amd_iommu.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iommu/amd_iommu.c