Re: [PATCH] iommu: omap-iommu.c: remove unnecessary null pointer check

2013-01-28 Thread Joerg Roedel
On Fri, Jan 18, 2013 at 09:42:18PM +0100, Cong Ding wrote: > Signed-off-by: Cong Ding > --- > drivers/iommu/omap-iommu.c |4 ++-- Applied to arm/omap, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org Mor

Re: [PATCH] iommu: omap-iommu.c: remove unnecessary null pointer check

2013-01-22 Thread Tony Lindgren
* Ohad Ben-Cohen [130118 12:58]: > On Fri, Jan 18, 2013 at 10:42 PM, Cong Ding wrote: > > The pointer obj is dereferenced in line 146 and 149 respectively, so it is > > not > > necessary to check null again in line 149 and 175. And I have checked that > > all > > the callers of these two functi

Re: [PATCH] iommu: omap-iommu.c: remove unnecessary null pointer check

2013-01-18 Thread Ohad Ben-Cohen
On Fri, Jan 18, 2013 at 10:42 PM, Cong Ding wrote: > The pointer obj is dereferenced in line 146 and 149 respectively, so it is not > necessary to check null again in line 149 and 175. And I have checked that all > the callers of these two functions guarantee the parameter obj passed is not > null

[PATCH] iommu: omap-iommu.c: remove unnecessary null pointer check

2013-01-18 Thread Cong Ding
The pointer obj is dereferenced in line 146 and 149 respectively, so it is not necessary to check null again in line 149 and 175. And I have checked that all the callers of these two functions guarantee the parameter obj passed is not null. Signed-off-by: Cong Ding --- drivers/iommu/omap-iommu.c