s390x: Beautify diag308 handling
commit0b7fd817e0f383760e37ca9286150d5816cf0594
authorJanosch Frank <frankja@linux.ibm.com>
Wed, 27 Nov 2019 17:50:45 +0000 (27 12:50 -0500)
committerCornelia Huck <cohuck@redhat.com>
Sat, 14 Dec 2019 09:25:50 +0000 (14 10:25 +0100)
tree377e39a78019267dd820e300cce7f00c569f659d
parenteb8adcc3e9e3b8405c104ede72cf9f3bb2a5e226
s390x: Beautify diag308 handling

Let's improve readability by:
* Using constants for the subcodes
* Moving parameter checking into a function
* Removing subcode > 6 check as the default case catches that

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