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>
This commit is contained in:
Roel Kluin 2010-01-08 10:29:05 -08:00 committed by Tony Lindgren
parent 4318f36b7c
commit acf9d467dc

View 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);