summaryrefslogtreecommitdiff
path: root/libfdt/fdt_ro.c
diff options
context:
space:
mode:
author Andre Przywara <andre.przywara@arm.com> 2020-09-21 17:52:50 +0100
committer David Gibson <david@gibson.dropbear.id.au> 2020-09-23 21:47:35 +1000
commit442ea3dd157906ce23df8001095562d3492a471c (patch)
tree5b22a49a29c0a9afdb7b38e9d29f9bd5263e906e /libfdt/fdt_ro.c
parentca19c3db2bf62000101ae8f83c37cd6e0d44d218 (diff)
libfdt: fdt_offset_ptr(): Fix comparison warnings
With -Wsign-compare, compilers warn about mismatching signedness in comparisons in fdt_offset_ptr(). This mostly stems from "offset" being passed in as a signed integer, even though the function would not really tolerate negative values. Short of changing the prototype, check that offset is not negative, and use an unsigned type internally. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Message-Id: <20200921165303.9115-2-andre.przywara@arm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/fdt_ro.c')
0 files changed, 0 insertions, 0 deletions