Skip to content

Commit

Permalink
omap: &&/|| confusion in iommu_put()
Browse files Browse the repository at this point in the history
obj can't be both NULL and be an error pointer.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Roel Kluin authored and Tony Lindgren committed Jan 8, 2010
1 parent 4318f36 commit acf9d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ EXPORT_SYMBOL_GPL(iommu_get);
**/
void iommu_put(struct iommu *obj)
{
if (!obj && IS_ERR(obj))
if (!obj || IS_ERR(obj))
return;

mutex_lock(&obj->iommu_lock);
Expand Down

0 comments on commit acf9d46

Please sign in to comment.