[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH-for-9.0 04/25] memory: Simplify memory_region_init_rom_nomigr
From: |
Peter Xu |
Subject: |
Re: [PATCH-for-9.0 04/25] memory: Simplify memory_region_init_rom_nomigrate() calls |
Date: |
Tue, 21 Nov 2023 09:57:42 -0500 |
On Mon, Nov 20, 2023 at 10:32:38PM +0100, Philippe Mathieu-Daudé wrote:
> Mechanical change using the following coccinelle script:
>
> @@
> expression mr, owner, arg3, arg4, errp;
> @@
> - memory_region_init_rom_nomigrate(mr, owner, arg3, arg4, &errp);
> if (
> - errp
> + !memory_region_init_rom_nomigrate(mr, owner, arg3, arg4, &errp)
> ) {
> ...
> return;
> }
>
> and removing the local Error variable.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
- [PATCH-for-9.0 00/25] memory: Propagate Error* when possible, Philippe Mathieu-Daudé, 2023/11/20
- [PATCH-for-9.0 01/25] memory: Have memory_region_init_ram_flags_nomigrate() return a boolean, Philippe Mathieu-Daudé, 2023/11/20
- [PATCH-for-9.0 02/25] memory: Have memory_region_init_ram_nomigrate() handler return a boolean, Philippe Mathieu-Daudé, 2023/11/20
- [PATCH-for-9.0 03/25] memory: Have memory_region_init_rom_nomigrate() handler return a boolean, Philippe Mathieu-Daudé, 2023/11/20
- [PATCH-for-9.0 04/25] memory: Simplify memory_region_init_rom_nomigrate() calls, Philippe Mathieu-Daudé, 2023/11/20
- [PATCH-for-9.0 05/25] memory: Simplify memory_region_init_ram_from_fd() calls, Philippe Mathieu-Daudé, 2023/11/20
- [PATCH-for-9.0 06/25] memory: Have memory_region_init_ram() handler return a boolean, Philippe Mathieu-Daudé, 2023/11/20
- [PATCH-for-9.0 07/25] memory: Have memory_region_init_rom() handler return a boolean, Philippe Mathieu-Daudé, 2023/11/20
- [PATCH-for-9.0 09/25] memory: Simplify memory_region_init_rom_device_nomigrate() calls, Philippe Mathieu-Daudé, 2023/11/20