[Top][All Lists]

[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: Gavin Shan
Subject: Re: [PATCH-for-9.0 23/25] hw/misc: Simplify memory_region_init_ram_from_fd() calls
Date: Mon, 4 Dec 2023 15:02:36 +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>
  hw/misc/ivshmem.c | 8 +++-----
  1 file changed, 3 insertions(+), 5 deletions(-)

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

reply via email to

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