Re: [patch -next] iommu: checking for NULL instead of IS_ERR

2015-06-11 Thread Joerg Roedel
On Wed, Jun 10, 2015 at 01:59:27PM +0300, Dan Carpenter wrote: > The iommu_group_alloc() and iommu_group_get_for_dev() functions return > error pointers, they never return NULL. > > Signed-off-by: Dan Carpenter Applied, thanks. ___ iommu mailing list i

[patch -next] iommu: checking for NULL instead of IS_ERR

2015-06-10 Thread Dan Carpenter
The iommu_group_alloc() and iommu_group_get_for_dev() functions return error pointers, they never return NULL. Signed-off-by: Dan Carpenter diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index c520c0c..9c25e6be 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -788,15