mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
x86: Drop some superfluous casts from void *
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ab3ad07f89
commit
e42a92ae64
2 changed files with 2 additions and 2 deletions
|
@ -1556,7 +1556,7 @@ static char *x86_cpuid_get_vendor(Object *obj, Error **errp)
|
|||
CPUX86State *env = &cpu->env;
|
||||
char *value;
|
||||
|
||||
value = (char *)g_malloc(CPUID_VENDOR_SZ + 1);
|
||||
value = g_malloc(CPUID_VENDOR_SZ + 1);
|
||||
x86_cpu_vendor_words2str(value, env->cpuid_vendor1, env->cpuid_vendor2,
|
||||
env->cpuid_vendor3);
|
||||
return value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue