diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-20 13:47:58 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-05 16:20:15 +0100 |
commit | 7493bd184e35e88317d306e4df030459eefc7ed9 (patch) | |
tree | 2df32f2eedc6a7d6105c15781e9a30ee270df273 /scripts/qapi/parser.py | |
parent | 02e0ecb42ccbf750bb60f82c23ef25540ad12b20 (diff) | |
download | qemu-7493bd184e35e88317d306e4df030459eefc7ed9.zip qemu-7493bd184e35e88317d306e4df030459eefc7ed9.tar.gz qemu-7493bd184e35e88317d306e4df030459eefc7ed9.tar.bz2 |
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>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions