]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: fdt: Fix handling of empty properties for fdt get addr and fdt get size
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 2 Mar 2023 03:08:15 +0000 (04:08 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Mar 2023 19:40:57 +0000 (11:40 -0800)
commit27ed5d68daf4a56203e96ca0a42a8e6e630498d4
treeb6b65a4fbae62388c72f4168e4ebf1a988008ab3
parentca387fb75c192c5b817d799917c2f86fa23beaca
cmd: fdt: Fix handling of empty properties for fdt get addr and fdt get size

It is perfectly valid to request an address or size of FDT property
without value, the only special case if requesting of the value of
FDT property without value. Invert the test such, that properties
without value still set the variable from 'fdt get addr/size' to
address of the property or size of the property, where the later
is 0.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/fdt.c