qemu-trivial
[Top][All Lists]
Advanced

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

Re: [Qemu-trivial] [PATCH 0/7] Remove useless casts


From: Michael Tokarev
Subject: Re: [Qemu-trivial] [PATCH 0/7] Remove useless casts
Date: Wed, 14 Sep 2016 10:18:35 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0

15.06.2016 19:14, Laurent Vivier wrote:
This series is the result of the following coccinelle script:

    @@
    type T;
    T v;
    @@
    -       (T *)&v
    +       &v

This script removes the cast of a variable when the variable
is already of the casting type.

The script is added in scripts/coccinelle by the first patch.

Laurent Vivier (7):
  coccinelle: add a script to remove useless casts
  linux-user,s390x: remove useless cast
  s390x: remove useless cast
  tricore: remove useless cast
  fw_cfg: remove useless casts
  crypto: remove useless casts
  sheepdog: remove useless casts

 block/sheepdog.c                  | 4 ++--
 crypto/cipher-builtin.c           | 4 ++--
 hw/nvram/fw_cfg.c                 | 4 ++--
 hw/s390x/sclp.c                   | 2 +-
 hw/tricore/tricore_testboard.c    | 2 +-
 linux-user/signal.c               | 2 +-
 scripts/coccinelle/typecast.cocci | 7 +++++++
 7 files changed, 16 insertions(+), 9 deletions(-)
 create mode 100644 scripts/coccinelle/typecast.cocci

Applied all 7 to -trivial, thank you!

/mjt




reply via email to

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