On Mon, Nov 20, 2023 at 10:32:43PM +0100, Philippe Mathieu-Daudé wrote: > Mechanical change using the following coccinelle script: > > @@ > expression mr, owner, arg3, arg4, arg5, arg6, errp; > @@ > - memory_region_init_rom_device_nomigrate(mr, owner, arg3, arg4, arg5, > arg6, &errp); > if ( > - errp > + !memory_region_init_rom_device_nomigrate(mr, owner, arg3, arg4, arg5, > arg6, &errp) > ) { > ... > return; > } > > and removing the local Error variable. > > Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Reviewed-by: Peter Xu <pet...@redhat.com> -- Peter Xu