diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-06-05 08:29:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-06-06 11:34:36 +0200 |
commit | 1bebc7f398cedbb215e81a2f5f430f2a6c45010a (patch) | |
tree | 425596b228296ff0db7260e474dc9eb253bd29df /CREDITS | |
parent | 723587ea0ccf4d1526b0be485b3d07c3d98af740 (diff) | |
download | barebox-1bebc7f398cedbb215e81a2f5f430f2a6c45010a.tar.gz barebox-1bebc7f398cedbb215e81a2f5f430f2a6c45010a.tar.xz |
bootm: booti: fix false positive uninitialized variable access
devicetree is only initialized when oftree is non-NULL and it's only
printed when oftree is non-NULL, so warning about devicetree use in the
printf looks like a false positive. Given that devicetree = *oftree, but
with a different type, we can avoid the warning and reduce devicetree
scope in the progress, by just using *oftree in the printf (%pad takes
a reference to phys_addr_t).
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230605062939.242063-7-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions