Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);