summary refs log tree commit diff stats
path: root/hw/misc/ivshmem.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-20 13:36:49 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-05 16:20:15 +0100
commit419d8524a266ece5ea44e689174ab026df888d08 (patch)
treec80a2080ef17c744749535bb7568f2e5c7118a0d /hw/misc/ivshmem.c
parent2198f5f0f2f3f5470a9e3c0c1431dec022bb67ad (diff)
downloadfocaccia-qemu-419d8524a266ece5ea44e689174ab026df888d08.tar.gz
focaccia-qemu-419d8524a266ece5ea44e689174ab026df888d08.zip
hw/arm: Simplify memory_region_init_rom() calls
Mechanical change using the following coccinelle script:

@@
expression mr, owner, arg3, arg4, errp;
@@
-   memory_region_init_rom(mr, owner, arg3, arg4, &errp);
    if (
-       errp
+       !memory_region_init_rom(mr, owner, arg3, arg4, &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-22-philmd@linaro.org>
Diffstat (limited to 'hw/misc/ivshmem.c')
0 files changed, 0 insertions, 0 deletions