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:23:33 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-05 16:20:15 +0100
commit02e0ecb42ccbf750bb60f82c23ef25540ad12b20 (patch)
treea6c17dfb54c545a236680a78baef4cfdb8c3eec1 /hw/misc/ivshmem.c
parent419d8524a266ece5ea44e689174ab026df888d08 (diff)
downloadfocaccia-qemu-02e0ecb42ccbf750bb60f82c23ef25540ad12b20.tar.gz
focaccia-qemu-02e0ecb42ccbf750bb60f82c23ef25540ad12b20.zip
hw/sparc: Simplify memory_region_init_ram_nomigrate() calls
Mechanical change using the following coccinelle script:

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

and removing the local Error variable.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-23-philmd@linaro.org>
Diffstat (limited to 'hw/misc/ivshmem.c')
0 files changed, 0 insertions, 0 deletions