[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 11/11] s390x: Drop useless casts
From: |
Cornelia Huck |
Subject: |
[Qemu-devel] [PULL 11/11] s390x: Drop useless casts |
Date: |
Fri, 21 Apr 2017 09:40:38 +0200 |
From: Eric Blake <address@hidden>
An upcoming Coccinelle cleanup script wanted to reformat the casts
present in this file - but on closer look, we don't need the casts
at all because C automatically converts void* to any other pointer.
Signed-off-by: Eric Blake <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
target/s390x/cpu_models.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c
index 1434d15315..ce461cc905 100644
--- a/target/s390x/cpu_models.c
+++ b/target/s390x/cpu_models.c
@@ -376,12 +376,12 @@ static void cpu_model_from_info(S390CPUModel *model,
const CpuModelInfo *info,
static void qdict_add_disabled_feat(const char *name, void *opaque)
{
- qdict_put((QDict *) opaque, name, qbool_from_bool(false));
+ qdict_put(opaque, name, qbool_from_bool(false));
}
static void qdict_add_enabled_feat(const char *name, void *opaque)
{
- qdict_put((QDict *) opaque, name, qbool_from_bool(true));
+ qdict_put(opaque, name, qbool_from_bool(true));
}
/* convert S390CPUDef into a static CpuModelInfo */
--
2.11.0
- [Qemu-devel] [PULL 01/11] s390x: introduce 2.10 compat machine, (continued)
- [Qemu-devel] [PULL 01/11] s390x: introduce 2.10 compat machine, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 02/11] s390x/kvm: make printf always compile in debug output, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 03/11] s390x/pci: make printf always compile in debug output, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 07/11] s390x: use enum for adapter type and standardize its naming, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 04/11] s390x/css: introduce read-only property type for device ids, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 06/11] s390x/css: consolidate the devno property for ccw devices, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 10/11] s390x: register I/O adapters per ISC during init, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 05/11] s390x/css: provide introspection for virtual subchannel and device busid, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 08/11] s390x: initialize flic before I/O subsystems, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 09/11] s390x/flic: cache flic in s390_get_flic, Cornelia Huck, 2017/04/21
- [Qemu-devel] [PULL 11/11] s390x: Drop useless casts,
Cornelia Huck <=
- Re: [Qemu-devel] [PULL 00/11] s390x patches for 2.10, Peter Maydell, 2017/04/21