diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-01-08 19:29:05 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-01-08 19:29:05 +0100 |
commit | acf9d467dc951daa0071b5a1f4bed8c108f7ebec (patch) | |
tree | 46a8ca47b69eecebf10b7c07550466f258a8c0f1 /arch/arm/plat-omap/iommu.c | |
parent | omap: gpio: Simultaneously requested rising and falling edge (diff) | |
download | linux-acf9d467dc951daa0071b5a1f4bed8c108f7ebec.tar.xz linux-acf9d467dc951daa0071b5a1f4bed8c108f7ebec.zip |
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>
Diffstat (limited to 'arch/arm/plat-omap/iommu.c')
-rw-r--r-- | arch/arm/plat-omap/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/iommu.c b/arch/arm/plat-omap/iommu.c index c0ff1e39d893..463d6386aff2 100644 --- a/arch/arm/plat-omap/iommu.c +++ b/arch/arm/plat-omap/iommu.c @@ -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); |