lib: simplify fdt_parse_plmt_node()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 28 Nov 2022 09:14:15 +0000 (10:14 +0100)
committerAnup Patel <anup@brainfault.org>
Mon, 5 Dec 2022 04:40:48 +0000 (10:10 +0530)
commitf8eec91de8b9221bc2b29f3020ec67d9b46109c7
tree3155f19feaa9790adecdaba655403d96cc93b49b
parentfc82e84329760540ec62b257c700025ba37cb7ab
lib: simplify fdt_parse_plmt_node()

We should not check !plmt_base || !plmt_size twice.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
lib/utils/fdt/fdt_helper.c