]> git.proxmox.com Git - mirror_qemu.git/commitdiff
s390x: Drop useless casts
authorEric Blake <eblake@redhat.com>
Wed, 5 Apr 2017 19:47:31 +0000 (14:47 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 31 Jul 2017 22:09:19 +0000 (17:09 -0500)
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>
(cherry picked from commit cb55c19a26d6928b445f1bd9394843c9eb60f8ab)
* prereq for 46f5ac2
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/s390x/cpu_models.c

index 1434d153154bf29533d6ae4d232e3e771d75adc7..ce461cc905b42f0a9ed75b29b7eb748a526472e6 100644 (file)
@@ -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 */