From: Eric Blake Date: Wed, 5 Apr 2017 19:47:31 +0000 (-0500) Subject: s390x: Drop useless casts X-Git-Tag: v2.9.1~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1eaf431077759ed1013a199e913de711ceeb4087;p=thirdparty%2Fqemu.git 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 Message-Id: <20170405194741.18956-4-eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Cornelia Huck (cherry picked from commit cb55c19a26d6928b445f1bd9394843c9eb60f8ab) * prereq for 46f5ac2 Signed-off-by: Michael Roth --- diff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c index 1434d153154..ce461cc905b 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 */