projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4318f36
)
omap: &&/|| confusion in iommu_put()
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 8 Jan 2010 18:29:05 +0000
(10:29 -0800)
committer
Tony Lindgren
<tony@atomide.com>
Fri, 8 Jan 2010 18:29:05 +0000
(10:29 -0800)
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>
arch/arm/plat-omap/iommu.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-omap/iommu.c
b/arch/arm/plat-omap/iommu.c
index c0ff1e39d8934d443db9780e7cdf9e6c75ae7bff..463d6386aff21172413e96ff0ed3ba0885821c15 100644
(file)
--- 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);