Tag: 0b6c0ad3cfe6bc914af3ae595c9729e38f11a024

iommu/mediatek: Fix handling of of_count_phandle_with_args result

Author: Andrzej Hajda <a.hajda@samsung.com> The function can return negative value so it should be assigned to signed variable. The patch changes also type of related i variable to make code more compact and coherent. The problem has been detected using patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci. Signed-off-by: Andrzej Hajda Signed-off-by: Joerg Roedel — drivers/iommu/mtk_iommu.c | 3 +– 1 file …

Continue reading