summary refs log tree commit diff stats
path: root/hw/timer/arm_timer.c
diff options
context:
space:
mode:
authorDaniel Henrique Barboza <danielhb413@gmail.com>2020-01-06 15:23:31 -0300
committerJuan Quintela <quintela@redhat.com>2020-01-20 09:10:22 +0100
commit03acb4e94deada2dd32412725420db82682f2e2e (patch)
treef515e80bcc5afb8a40475af38967e240e13ca13f /hw/timer/arm_timer.c
parentddad81bd28de665475a87693a93e6cf5d6fd8bab (diff)
downloadfocaccia-qemu-03acb4e94deada2dd32412725420db82682f2e2e.tar.gz
focaccia-qemu-03acb4e94deada2dd32412725420db82682f2e2e.zip
ram.c: remove unneeded labels
ram_save_queue_pages() has an 'err' label that can be replaced by
'return -1' instead.

Same thing with ram_discard_range(), and in this case we can also
get rid of the 'ret' variable and return either '-1' on error
or the result of ram_block_discard_range().

CC: Juan Quintela <quintela@redhat.com>
CC: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hw/timer/arm_timer.c')
0 files changed, 0 insertions, 0 deletions