various: Remove unnecessary OBJECT() cast
commit688ffbb4f72bf9a75c7ff3a899a9617de61d5fd6
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 12 May 2020 07:00:19 +0000 (12 09:00 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 15 May 2020 05:08:14 +0000 (15 07:08 +0200)
tree98137bc80565df6a363847506617f177167122c3
parent96449e4a30a56e3303d6d0407aca130c71671754
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]
hw/core/bus.c
hw/ide/ahci-allwinner.c
hw/ipmi/smbus_ipmi.c
hw/microblaze/petalogix_ml605_mmu.c
hw/s390x/sclp.c
monitor/misc.c
qom/object.c