mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
aspeed: Remove duplicate typename in AspeedSoCClass
The SoC type name is stored under AspeedSoCClass which is redundant. Use object_get_typename() instead where needed. Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au> Link: https://lore.kernel.org/qemu-devel/20250218073534.585066-1-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
136367e567
commit
a5b9621024
5 changed files with 4 additions and 10 deletions
|
@ -116,7 +116,7 @@ static void aspeed_soc_ast1030_init(Object *obj)
|
|||
char typename[64];
|
||||
int i;
|
||||
|
||||
if (sscanf(sc->name, "%7s", socname) != 1) {
|
||||
if (sscanf(object_get_typename(obj), "%7s", socname) != 1) {
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
|
@ -428,7 +428,6 @@ static void aspeed_soc_ast1030_class_init(ObjectClass *klass, void *data)
|
|||
dc->user_creatable = false;
|
||||
dc->realize = aspeed_soc_ast1030_realize;
|
||||
|
||||
sc->name = "ast1030-a1";
|
||||
sc->valid_cpu_types = valid_cpu_types;
|
||||
sc->silicon_rev = AST1030_A1_SILICON_REV;
|
||||
sc->sram_size = 0xc0000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue