This was prompted by a slop PR that came in via github and while looking at it I thought what arm_load_dtb really needed was to be modernised to:
- use autofree to avoid goto fail - use error_setg to report errors - use error_fatal rather than open coding exit() Alex. Alex Bennée (4): hw/arm: use g_autofree for filename in arm_load_dtb hw/arm: use g_autofree for fdt in arm_load_dtb hw/arm: use g_auto(GStrv) for node_path in arm_load_dtb hw/arm: expose Error * to arm_load_dtb include/hw/arm/boot.h | 3 +- hw/arm/boot.c | 75 ++++++++++++++++++------------------------- hw/arm/virt.c | 6 ++-- 3 files changed, 36 insertions(+), 48 deletions(-) -- 2.47.2
