[Top][All Lists]

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

Re: [PATCH-for-9.0 05/25] memory: Simplify memory_region_init_ram_from_f

From: Gavin Shan
Subject: Re: [PATCH-for-9.0 05/25] memory: Simplify memory_region_init_ram_from_fd() calls
Date: Mon, 4 Dec 2023 14:46:29 +1000
User-agent: Mozilla Thunderbird

On 11/21/23 07:32, Philippe Mathieu-Daudé 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, 
     if (
-       errp
+       !memory_region_init_ram_from_fd(mr, owner, arg3, arg4, arg5, arg6, arg7, 
     ) {

and removing the local Error variable.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
  system/memory.c | 5 +----
  1 file changed, 1 insertion(+), 4 deletions(-)

Reviewed-by: Gavin Shan <gshan@redhat.com>

reply via email to

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