]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/s390x/event-facility.c
s390x/event-facility.c: remove unneeded labels
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 8 Jan 2020 14:46:07 +0000 (11:46 -0300)
committerCornelia Huck <cohuck@redhat.com>
Mon, 27 Jan 2020 11:13:09 +0000 (12:13 +0100)
commit9208270b6b16110fa0de367d6bc43e99019f967b
treedcba3666af2391b92de9276aaf0474308eb795b8
parent65569bbf37a68ea957819fc489dab708308e1588
s390x/event-facility.c: remove unneeded labels

'out' label from write_event_mask() and write_event_data()
can be replaced by 'return'.

The 'out' label from read_event_data() can also be replaced.
However, as suggested by Cornelia Huck, instead of simply
replacing the 'out' label, let's also change the code flow
a bit to make it clearer that sccb events are always handled
regardless of the mask for unconditional reads, while selective
reads are handled if the mask is valid.

CC: Cornelia Huck <cohuck@redhat.com>
CC: Thomas Huth <thuth@redhat.com>
CC: Halil Pasic <pasic@linux.ibm.com>
CC: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20200108144607.878862-1-danielhb413@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/event-facility.c