diff options
author | Philippe Mathieu-Daudé | 2020-05-12 09:00:19 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-05-15 07:08:14 +0200 |
commit | 688ffbb4f72bf9a75c7ff3a899a9617de61d5fd6 (patch) | |
tree | 98137bc80565df6a363847506617f177167122c3 /hw/ide | |
parent | target: Remove unnecessary CPU() cast (diff) | |
download | qemu-688ffbb4f72bf9a75c7ff3a899a9617de61d5fd6.tar.gz qemu-688ffbb4f72bf9a75c7ff3a899a9617de61d5fd6.tar.xz qemu-688ffbb4f72bf9a75c7ff3a899a9617de61d5fd6.zip |
various: Remove unnecessary OBJECT() cast
The OBJECT() macro is defined as:
#define OBJECT(obj) ((Object *)(obj))
Remove the unnecessary OBJECT() casts when we already know the
pointer is of Object type.
Patch created mechanically using spatch with this script:
@@
typedef Object;
Object *o;
@@
- OBJECT(o)
+ o
Acked-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Acked-by: John Snow <jsnow@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200512070020.22782-3-f4bug@amsat.org>
[Trivial rebase conflict in hw/s390x/sclp.c resolved]
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/ahci-allwinner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/ahci-allwinner.c b/hw/ide/ahci-allwinner.c index bb8393d2b6..8536b9eb5a 100644 --- a/hw/ide/ahci-allwinner.c +++ b/hw/ide/ahci-allwinner.c @@ -90,7 +90,7 @@ static void allwinner_ahci_init(Object *obj) SysbusAHCIState *s = SYSBUS_AHCI(obj); AllwinnerAHCIState *a = ALLWINNER_AHCI(obj); - memory_region_init_io(&a->mmio, OBJECT(obj), &allwinner_ahci_mem_ops, a, + memory_region_init_io(&a->mmio, obj, &allwinner_ahci_mem_ops, a, "allwinner-ahci", ALLWINNER_AHCI_MMIO_SIZE); memory_region_add_subregion(&s->ahci.mem, ALLWINNER_AHCI_MMIO_OFF, &a->mmio); |