Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
Joerg Roedel
f8ffcc92 5698bd75

+1 -2
+1 -2
drivers/iommu/exynos-iommu.c
··· 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",