diff options
author | 2020-09-21 17:53:02 +0100 | |
---|---|---|
committer | 2020-09-25 14:09:41 +1000 | |
commit | 10f682788c3023d319cdc14f59ffe9d91cb6d2fc (patch) | |
tree | 37947f8505336240558d07f6feaf3bdefa1ec526 /libfdt/fdt.c | |
parent | 07158f4cf2a2fa2267b7a86f138a4f16ecb54172 (diff) |
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: Andre Przywara <andre.przywara@arm.com>
Message-Id: <20200921165303.9115-14-andre.przywara@arm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/fdt.c')
0 files changed, 0 insertions, 0 deletions