]> Git Repo - qemu.git/commit - migration/ram.c
ram.c: remove unneeded labels
authorDaniel Henrique Barboza <[email protected]>
Mon, 6 Jan 2020 18:23:31 +0000 (15:23 -0300)
committerJuan Quintela <[email protected]>
Mon, 20 Jan 2020 08:10:22 +0000 (09:10 +0100)
commit03acb4e94deada2dd32412725420db82682f2e2e
treef515e80bcc5afb8a40475af38967e240e13ca13f
parentddad81bd28de665475a87693a93e6cf5d6fd8bab
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 <[email protected]>
CC: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Daniel Henrique Barboza <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Signed-off-by: Juan Quintela <[email protected]>
migration/ram.c
This page took 0.025117 seconds and 4 git commands to generate.