of: reserved-memory: remove duplicated call to of_get_flat_dt_prop() for no-map node
authorYue Hu <huyue2@yulong.com>
Thu, 30 Jul 2020 09:23:53 +0000 (17:23 +0800)
committerRob Herring <robh@kernel.org>
Mon, 3 Aug 2020 22:50:54 +0000 (16:50 -0600)
commit6f1188b4ac7577c29a4883d5618fa2231396fe9d
tree2b4d1ff0d109a560e1c993beabefe54d73356d62
parentbda2127827e9dd2781ae095cda0b8e5bf685c458
of: reserved-memory: remove duplicated call to of_get_flat_dt_prop() for no-map node

Just use nomap instead of the second call to of_get_flat_dt_prop(). And
change nomap as a bool type due to != NULL operator. Also, correct comment
about node of 'align' -> 'alignment'.

Signed-off-by: Yue Hu <huyue2@yulong.com>
Link: https://lore.kernel.org/r/20200730092353.15644-1-zbestahu@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/of_reserved_mem.c