[PATCH 0/4] arm_load_dtb cleanups

Alex Bennée posted 4 patches 3 weeks, 6 days ago
Failed in applying to current master (apply log)
There is a newer version of this series
include/hw/arm/boot.h |  3 +-
hw/arm/boot.c         | 75 ++++++++++++++++++-------------------------
hw/arm/virt.c         |  6 ++--
3 files changed, 36 insertions(+), 48 deletions(-)
[PATCH 0/4] arm_load_dtb cleanups
Posted by Alex Bennée 3 weeks, 6 days ago
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