[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH-for-5.1 2/3] various: Remove unnecessary OBJECT() cast
From: |
Cornelia Huck |
Subject: |
Re: [PATCH-for-5.1 2/3] various: Remove unnecessary OBJECT() cast |
Date: |
Tue, 14 Apr 2020 11:44:57 +0200 |
On Sun, 12 Apr 2020 23:09:53 +0200
Philippe Mathieu-Daudé <address@hidden> 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é <address@hidden>
> ---
> 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 <address@hidden>
- [PATCH-for-5.1 0/3] various: Remove unnecessary casts, Philippe Mathieu-Daudé, 2020/04/12
- [PATCH-for-5.1 1/3] target: Remove unnecessary CPU() cast, Philippe Mathieu-Daudé, 2020/04/12
- [PATCH-for-5.1 2/3] various: Remove unnecessary OBJECT() cast, Philippe Mathieu-Daudé, 2020/04/12
- [PATCH-for-5.1 3/3] hw: Remove unnecessary DEVICE() cast, Philippe Mathieu-Daudé, 2020/04/12
- Re: [PATCH-for-5.1 3/3] hw: Remove unnecessary DEVICE() cast, David Gibson, 2020/04/13
- Re: [PATCH-for-5.1 3/3] hw: Remove unnecessary DEVICE() cast, Markus Armbruster, 2020/04/14
- RE: [PATCH-for-5.1 3/3] hw: Remove unnecessary DEVICE() cast, Paul Durrant, 2020/04/14
- Re: [PATCH-for-5.1 3/3] hw: Remove unnecessary DEVICE() cast, Cédric Le Goater, 2020/04/15
- Re: [PATCH-for-5.1 3/3] hw: Remove unnecessary DEVICE() cast, John Snow, 2020/04/17
- Re: [PATCH-for-5.1 0/3] various: Remove unnecessary casts, Richard Henderson, 2020/04/14