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(-)