aboutsummaryrefslogtreecommitdiff
path: root/migration/unix.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-11-05 18:10:39 +0000
committerJuan Quintela <quintela@redhat.com>2015-11-10 14:51:49 +0100
commita776aa15a7e3e08964c6c537314b9590dde27b4d (patch)
treeea702a9603f3c9de9d1b09bb2cefad43467234e1 /migration/unix.c
parent4f2e425267327719ee71ba6f191f7d66507a6c02 (diff)
downloadqemu-a776aa15a7e3e08964c6c537314b9590dde27b4d.zip
qemu-a776aa15a7e3e08964c6c537314b9590dde27b4d.tar.gz
qemu-a776aa15a7e3e08964c6c537314b9590dde27b4d.tar.bz2
ram_load: Factor out host_from_stream_offset call and check
The main RAM load loop has a call to host_from_stream_offset for each page type that actually loads data with the same test; factor it out before the switch. The host = NULL is to silence a bogus gcc warning of an unitialised in the RAM_SAVE_COMPRESS_PAGE case, it doesn't seem to realise that host is always initialised by the if at the top in the cases the switch takes. Signed-off-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 'migration/unix.c')
0 files changed, 0 insertions, 0 deletions