s390x: kvm: Make kvm_sclp_service_call void
commit15b6c0370c3e2774fd9ffda5c10c6e36952e8eb6
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 29 Nov 2019 09:17:13 +0000 (29 04:17 -0500)
committerCornelia Huck <cohuck@redhat.com>
Sat, 14 Dec 2019 09:25:50 +0000 (14 10:25 +0100)
tree409fef481ee5279b34dd9536353a750b51433b17
parent0b7fd817e0f383760e37ca9286150d5816cf0594
s390x: kvm: Make kvm_sclp_service_call void

It defaults to returning 0 anyway and that return value is not
necessary, as 0 is also the default rc that the caller would return.

While doing that we can simplify the logic a bit and return early if
we inject a PGM exception.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20191129091713.4582-1-frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/kvm.c