Commit ad4ad5f5 authored by David Hildenbrand's avatar David Hildenbrand Committed by Cornelia Huck
Browse files

target/s390x: simplify ri_allowed()



Only used in KVM and there is no reason why it shouldn't be allowed for
tcg - it is simply not available.

Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
Message-Id: <20170818114353.13455-4-david@redhat.com>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarCornelia Huck <cohuck@redhat.com>
parent 708f99c3
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -278,9 +278,6 @@ static S390CcwMachineClass *get_machine_class(void)

bool ri_allowed(void)
{
    if (!kvm_enabled()) {
        return false;
    }
    /* for "none" machine this results in true */
    return get_machine_class()->ri_allowed;
}