Skip to content
Commit 0b6c0ad3 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Joerg Roedel
Browse files

iommu/mediatek: Fix handling of of_count_phandle_with_args result



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: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent fd99f796
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment