Commit f8ffcc9279f90ba3790c6dc0f01207ad6ea1c8df
Committed by
Joerg Roedel
1 parent
5698bd757d
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
iommu/exynos: use list_del_init instead of list_del/INIT_LIST_HEAD
Using list_del_init() instead of list_del() + INIT_LIST_HEAD(). spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
drivers/iommu/exynos-iommu.c
... | ... | @@ -840,8 +840,7 @@ |
840 | 840 | if (__exynos_sysmmu_disable(data)) { |
841 | 841 | dev_dbg(dev, "%s: Detached IOMMU with pgtable %#lx\n", |
842 | 842 | __func__, __pa(priv->pgtable)); |
843 | - list_del(&data->node); | |
844 | - INIT_LIST_HEAD(&data->node); | |
843 | + list_del_init(&data->node); | |
845 | 844 | |
846 | 845 | } else { |
847 | 846 | dev_dbg(dev, "%s: Detaching IOMMU with pgtable %#lx delayed", |