Commit 10f68278 authored by Andre Przywara's avatar Andre Przywara Committed by David Gibson
Browse files

libfdt: fdt_node_offset_by_phandle(): Fix comparison warning



With -Wsign-compare, compilers warn about a mismatching signedness
in a comparison in fdt_node_offset_by_phandle().

Uses a better suited bitwise NOT operator to denote the special value of
-1, which automatically results in an unsigned type.

Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Message-Id: <20200921165303.9115-14-andre.przywara@arm.com>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 07158f4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment