Commit cb55c19a authored by Eric Blake's avatar Eric Blake Committed by Cornelia Huck
Browse files

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: default avatarEric Blake <eblake@redhat.com>
Message-Id: <20170405194741.18956-4-eblake@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
parent dde522bb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */