Commit acf9d467 authored by Roel Kluin's avatar Roel Kluin Committed by Tony Lindgren

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

obj can't be both NULL and be an error pointer.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 4318f36b
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment