summary refs log tree commit diff stats
path: root/docs/devel/secure-coding-practices.rst
diff options
context:
space:
mode:
authorDaniel Henrique Barboza <danielhb413@gmail.com>2020-01-08 11:46:07 -0300
committerCornelia Huck <cohuck@redhat.com>2020-01-27 12:13:09 +0100
commit9208270b6b16110fa0de367d6bc43e99019f967b (patch)
treedcba3666af2391b92de9276aaf0474308eb795b8 /docs/devel/secure-coding-practices.rst
parent65569bbf37a68ea957819fc489dab708308e1588 (diff)
downloadfocaccia-qemu-9208270b6b16110fa0de367d6bc43e99019f967b.tar.gz
focaccia-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 'docs/devel/secure-coding-practices.rst')
0 files changed, 0 insertions, 0 deletions