Skip to content

Commit

Permalink
target/s390x: simplify ri_allowed()
Browse files Browse the repository at this point in the history
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: David Hildenbrand <david@redhat.com>
Message-Id: <20170818114353.13455-4-david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
  • Loading branch information
davidhildenbrand authored and cohuck committed Aug 30, 2017
1 parent 708f99c commit ad4ad5f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hw/s390x/s390-virtio-ccw.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit ad4ad5f

Please sign in to comment.