omap: &&/|| confusion in iommu_put()
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 8 Jan 2010 18:29:05 +0000 (10:29 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 8 Jan 2010 18:29:05 +0000 (10:29 -0800)
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>
arch/arm/plat-omap/iommu.c

index c0ff1e39d8934d443db9780e7cdf9e6c75ae7bff..463d6386aff21172413e96ff0ed3ba0885821c15 100644 (file)
@@ -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);