projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7644cb
)
iommu/msm: Use BUG_ON instead of if () BUG()
author
Joerg Roedel
<jroedel@suse.de>
Thu, 13 Aug 2015 09:15:13 +0000
(11:15 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 13 Aug 2015 17:50:51 +0000
(19:50 +0200)
Found by a coccicheck script.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/msm_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/msm_iommu.c
b/drivers/iommu/msm_iommu.c
index 15a2063812fa8ddf5aa2aa2eb912c526b8bc4da2..e321fa517a4526d191a6a997a361e0228305932b 100644
(file)
--- a/
drivers/iommu/msm_iommu.c
+++ b/
drivers/iommu/msm_iommu.c
@@
-106,8
+106,8
@@
static int __flush_iotlb(struct iommu_domain *domain)
#endif
list_for_each_entry(ctx_drvdata, &priv->list_attached, attached_elm) {
- if (!ctx_drvdata->pdev || !ctx_drvdata->pdev->dev.parent)
-
BUG(
);
+
+
BUG_ON(!ctx_drvdata->pdev || !ctx_drvdata->pdev->dev.parent
);
iommu_drvdata = dev_get_drvdata(ctx_drvdata->pdev->dev.parent);
BUG_ON(!iommu_drvdata);