qemu/hw/nvram
Philippe Mathieu-Daudé a3ad58342a hw/nvram/fw_cfg: Simplify fw_cfg_add_from_generator() error propagation
Document FWCfgDataGeneratorClass::get_data() return NULL
on error, and non-NULL on success. This allow us to simplify
fw_cfg_add_from_generator(). Since we don't need a local
variable to propagate the error, we can remove the ERRP_GUARD()
macro.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200721131911.27380-2-philmd@redhat.com>
2020-07-21 16:47:31 +02:00
..
chrp_nvram.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
ds1225y.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
eeprom93xx.c misc: Replace zero-length arrays with flexible array member (automatic) 2020-03-16 22:07:42 +01:00
eeprom_at24c.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
fw_cfg.c hw/nvram/fw_cfg: Simplify fw_cfg_add_from_generator() error propagation 2020-07-21 16:47:31 +02:00
Kconfig hw/nvram/Kconfig: Restrict CHRP NVRAM to machines using OpenBIOS or SLOF 2020-01-07 12:08:39 +01:00
mac_nvram.c hw/nvram/mac_nvram: Convert debug printf()s to trace events 2020-05-27 15:29:36 +10:00
Makefile.objs hw/*/Makefile.objs: Move many .o files to common-objs 2020-02-04 09:00:57 +01:00
nrf51_nvm.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
spapr_nvram.c Let cpu_[physical]_memory() calls pass a boolean 'is_write' argument 2020-02-20 14:47:08 +01:00
trace-events hw/nvram/mac_nvram: Convert debug printf()s to trace events 2020-05-27 15:29:36 +10:00