s390x/tcg: simplify lookup of flic
We can simply search for an object of our common type. Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20180129125623.21729-4-david@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
e2ac12f014
commit
b03d9970c4
|
@ -27,11 +27,9 @@ S390FLICState *s390_get_flic(void)
|
|||
static S390FLICState *fs;
|
||||
|
||||
if (!fs) {
|
||||
fs = S390_FLIC_COMMON(object_resolve_path(TYPE_KVM_S390_FLIC, NULL));
|
||||
if (!fs) {
|
||||
fs = S390_FLIC_COMMON(object_resolve_path(TYPE_QEMU_S390_FLIC,
|
||||
NULL));
|
||||
}
|
||||
fs = S390_FLIC_COMMON(object_resolve_path_type("",
|
||||
TYPE_S390_FLIC_COMMON,
|
||||
NULL));
|
||||
}
|
||||
return fs;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue