Files
qemu/hw/misc
Philippe Mathieu-Daudé 15d55528ec hw/misc: Simplify memory_region_init_ram_from_fd() calls
Mechanical change using the following coccinelle script:

@@
expression mr, owner, arg3, arg4, arg5, arg6, arg7, errp;
@@
-   memory_region_init_ram_from_fd(mr, owner, arg3, arg4, arg5, arg6, arg7, &errp);
    if (
-       errp
+       !memory_region_init_ram_from_fd(mr, owner, arg3, arg4, arg5, arg6, arg7, &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-24-philmd@linaro.org>
(cherry picked from commit 7493bd184e)
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
2024-07-25 11:57:17 +02:00
..
2023-10-06 10:33:43 +02:00
2024-01-08 19:26:21 +03:00
2023-07-25 17:13:53 +03:00
2023-09-21 11:31:16 +03:00
2023-08-31 09:45:17 +01:00
2023-10-06 10:33:43 +02:00
2023-04-20 11:17:35 +02:00
2021-03-12 12:48:56 +00:00
2019-08-16 13:31:52 +02:00
2023-09-21 11:31:16 +03:00
2020-12-08 13:48:57 -05:00
2021-02-08 15:15:32 +01:00
2021-11-09 10:11:27 +01:00
2023-09-21 11:31:16 +03:00