Browse Source

omap: &&/|| confusion in iommu_put()

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>
Roel Kluin 15 years ago
parent
commit
acf9d467dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/plat-omap/iommu.c

+ 1 - 1
arch/arm/plat-omap/iommu.c

@@ -827,7 +827,7 @@ EXPORT_SYMBOL_GPL(iommu_get);
  **/
  **/
 void iommu_put(struct iommu *obj)
 void iommu_put(struct iommu *obj)
 {
 {
-	if (!obj && IS_ERR(obj))
+	if (!obj || IS_ERR(obj))
 		return;
 		return;
 
 
 	mutex_lock(&obj->iommu_lock);
 	mutex_lock(&obj->iommu_lock);