提交 acf9d467 编写于 作者: R Roel Kluin 提交者: Tony Lindgren

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

obj can't be both NULL and be an error pointer.
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 4318f36b
无相关合并请求
...@@ -827,7 +827,7 @@ EXPORT_SYMBOL_GPL(iommu_get); ...@@ -827,7 +827,7 @@ EXPORT_SYMBOL_GPL(iommu_get);
**/ **/
void iommu_put(struct iommu *obj) void iommu_put(struct iommu *obj)
{ {
if (!obj && IS_ERR(obj)) if (!obj || IS_ERR(obj))
return; return;
mutex_lock(&obj->iommu_lock); mutex_lock(&obj->iommu_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部