qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 05/13] qobject: Drop useless QObject casts


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v3 05/13] qobject: Drop useless QObject casts
Date: Fri, 7 Apr 2017 10:04:47 +0100
User-agent: Mutt/1.8.0 (2017-02-23)

On Wed, Apr 05, 2017 at 02:47:33PM -0500, Eric Blake wrote:
> We have macros in place to make it less verbose to add a subtype
> of QObject to both QDict and QList. While we have made cleanups
> like this in the past (see commit fcfcd8ffc, for example), having
> it be automated by Coccinelle makes it easier to maintain.
> 
> Patch created mechanically via:
>   spatch --sp-file scripts/coccinelle/qobject.cocci \
>     --macro-file scripts/cocci-macro-file.h --dir . --in-place
> then I verified that no manual touchups were required.
> 
> Signed-off-by: Eric Blake <address@hidden>
> ---
>  block.c                   | 12 ++++--------
>  block/blkdebug.c          |  4 ++--
>  block/blkverify.c         |  7 +++----
>  block/file-posix.c        |  6 +++---
>  block/file-win32.c        |  4 ++--
>  block/quorum.c            | 16 ++++++----------
>  tests/check-qdict.c       | 20 ++++++++++----------
>  tests/test-qmp-commands.c | 24 ++++++++++++------------
>  8 files changed, 42 insertions(+), 51 deletions(-)

Reviewed-by: Stefan Hajnoczi <address@hidden>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]