aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-20 13:47:58 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-05 16:20:15 +0100
commit7493bd184e35e88317d306e4df030459eefc7ed9 (patch)
tree2df32f2eedc6a7d6105c15781e9a30ee270df273 /scripts/qapi/parser.py
parent02e0ecb42ccbf750bb60f82c23ef25540ad12b20 (diff)
downloadqemu-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