summaryrefslogtreecommitdiffstats
path: root/target/s390x/cpu_models.c
diff options
context:
space:
mode:
authorEric Blake2017-04-05 21:47:31 +0200
committerCornelia Huck2017-04-21 09:32:09 +0200
commitcb55c19a26d6928b445f1bd9394843c9eb60f8ab (patch)
tree1d65b658f2bcdacc4696de10abf9607c12a63895 /target/s390x/cpu_models.c
parents390x: register I/O adapters per ISC during init (diff)
downloadqemu-cb55c19a26d6928b445f1bd9394843c9eb60f8ab.tar.gz
qemu-cb55c19a26d6928b445f1bd9394843c9eb60f8ab.tar.xz
qemu-cb55c19a26d6928b445f1bd9394843c9eb60f8ab.zip
s390x: Drop useless casts
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 <eblake@redhat.com> Message-Id: <20170405194741.18956-4-eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'target/s390x/cpu_models.c')
-rw-r--r--target/s390x/cpu_models.c4
1 files 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 */