On Sun, 12 Apr 2020 23:09:53 +0200 Philippe Mathieu-Daudé <f4...@amsat.org> wrote:
> The OBJECT() macro is defined as: > > #define OBJECT(obj) ((Object *)(obj)) > > Remove unnecessary OBJECT() casts. > > Patch created mechanically using spatch with this script: > > @@ > typedef Object; > Object *o; > @@ > - OBJECT(o) > + o > > Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> > --- > hw/core/bus.c | 2 +- > hw/ide/ahci-allwinner.c | 2 +- > hw/ipmi/smbus_ipmi.c | 2 +- > hw/microblaze/petalogix_ml605_mmu.c | 8 ++++---- > hw/s390x/sclp.c | 2 +- > monitor/misc.c | 3 +-- > qom/object.c | 4 ++-- > 7 files changed, 11 insertions(+), 12 deletions(-) > s390x part: Acked-by: Cornelia Huck <coh...@redhat.com>