qemu/hw/nvram
Philippe Mathieu-Daudé ca1b876292 hw/nvram: Simplify memory_region_init_rom_device() calls
Mechanical change using the following coccinelle script:

@@
expression mr, owner, arg3, arg4, arg5, arg6, errp;
@@
-   memory_region_init_rom_device(mr, owner, arg3, arg4, arg5, arg6, &errp);
    if (
-       errp
+       !memory_region_init_rom_device(mr, owner, arg3, arg4, arg5, arg6, &errp)
    ) {
        ...
        return;
    }

and removing the local Error variable.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-25-philmd@linaro.org>
2024-01-05 16:20:15 +01:00
..
chrp_nvram.c nvram: Exit QEMU if NVRAM cannot contain all -prom-env data 2020-08-14 13:34:31 +10:00
ds1225y.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
eeprom93xx.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
eeprom_at24c.c hw/other: spelling fixes 2023-09-21 11:31:16 +03:00
fw_cfg-interface.c hw/nvram: Always register FW_CFG_DATA_GENERATOR_INTERFACE 2020-10-12 11:50:20 -04:00
fw_cfg.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
Kconfig hw/nvram: Introduce Xilinx battery-backed ram 2021-09-30 13:42:10 +01:00
mac_nvram.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
meson.build crypto: only include tls-cipher-suites in emulators 2023-10-03 10:29:39 +02:00
npcm7xx_otp.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
nrf51_nvm.c hw/nvram: Simplify memory_region_init_rom_device() calls 2024-01-05 16:20:15 +01:00
spapr_nvram.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
xlnx-bbram.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
xlnx-efuse-crc.c hw/nvram: Introduce Xilinx eFuse QOM 2021-09-30 13:42:09 +01:00
xlnx-efuse.c hw/nvram/xlnx-efuse: Free XlnxEFuse::ro_bits[] array on finalize() 2023-11-27 15:27:43 +00:00
xlnx-versal-efuse-cache.c hw/nvram: Introduce Xilinx Versal eFuse device 2021-09-30 13:42:10 +01:00
xlnx-versal-efuse-ctrl.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
xlnx-zynqmp-efuse.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00