Received: from eggs.gnu.org ([2001:4830:134:3::10]:33411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDDSx-0005Mr-Kp for qemu-devel@nongnu.org; Wed, 15 Jun 2016 12:14:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDDSt-0003fa-BZ for qemu-devel@nongnu.org; Wed, 15 Jun 2016 12:14:55 -0400 From: Laurent Vivier Date: Wed, 15 Jun 2016 18:14:30 +0200 Message-Id: <1466007277-17525-1-git-send-email-lvivier@redhat.com> Subject: [Qemu-devel] [PATCH 0/7] Remove useless casts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Cc: Laurent Vivier 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 -- 2.5.5