qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH-for-9.0 23/25] hw/misc: Simplify memory_region_init_ram_from_


From: Manos Pitsidianakis
Subject: Re: [PATCH-for-9.0 23/25] hw/misc: Simplify memory_region_init_ram_from_fd() calls
Date: Wed, 22 Nov 2023 09:45:44 +0200
User-agent: meli 0.8.2

On Mon, 20 Nov 2023 23:32, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
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>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]