qemu-ppc
[Top][All Lists]
Advanced

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

Re: [PATCH-for-9.0 21/25] hw/arm: Simplify memory_region_init_rom() call


From: Gavin Shan
Subject: Re: [PATCH-for-9.0 21/25] hw/arm: Simplify memory_region_init_rom() calls
Date: Mon, 4 Dec 2023 15:01:40 +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, errp;
@@
-   memory_region_init_rom(mr, owner, arg3, arg4, &errp);
     if (
-       errp
+       !memory_region_init_rom(mr, owner, arg3, arg4, &errp)
     ) {
         ...
         return;
     }

and removing the local Error variable.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  hw/arm/fsl-imx25.c | 13 ++++---------
  hw/arm/fsl-imx31.c | 13 ++++---------
  hw/arm/fsl-imx6.c  | 13 ++++---------
  3 files changed, 12 insertions(+), 27 deletions(-)


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




reply via email to

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