diff options
| author | Daniel Henrique Barboza | 2020-01-08 15:46:07 +0100 |
|---|---|---|
| committer | Cornelia Huck | 2020-01-27 12:13:09 +0100 |
| commit | 9208270b6b16110fa0de367d6bc43e99019f967b (patch) | |
| tree | dcba3666af2391b92de9276aaf0474308eb795b8 /device-hotplug.c | |
| parent | intc/s390_flic_kvm.c: remove unneeded label in kvm_flic_load() (diff) | |
| download | qemu-9208270b6b16110fa0de367d6bc43e99019f967b.tar.gz qemu-9208270b6b16110fa0de367d6bc43e99019f967b.tar.xz qemu-9208270b6b16110fa0de367d6bc43e99019f967b.zip | |
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>
Diffstat (limited to 'device-hotplug.c')
0 files changed, 0 insertions, 0 deletions
