From b03d9970c49d8f09f6e86130b320a91888667689 Mon Sep 17 00:00:00 2001 From: David Hildenbrand Date: Mon, 29 Jan 2018 13:56:08 +0100 Subject: s390x/tcg: simplify lookup of flic We can simply search for an object of our common type. Signed-off-by: David Hildenbrand Message-Id: <20180129125623.21729-4-david@redhat.com> Signed-off-by: Cornelia Huck --- hw/intc/s390_flic.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'hw/intc') diff --git a/hw/intc/s390_flic.c b/hw/intc/s390_flic.c index fc244fe..ba1aa40 100644 --- a/hw/intc/s390_flic.c +++ b/hw/intc/s390_flic.c @@ -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; } -- cgit v1.1