diff options
author | Eduardo Habkost | 2015-11-06 23:11:21 +0100 |
---|---|---|
committer | Paolo Bonzini | 2015-12-17 15:24:34 +0100 |
commit | 2f3a2bb15e665f23c885985226c4147db4ea35db (patch) | |
tree | 3eafedd886c07a5ed8b39e683328592e1af5ca62 /scripts/qapi-event.py | |
parent | memory: Eliminate memory_region_destructor_ram_from_ptr() (diff) | |
download | qemu-2f3a2bb15e665f23c885985226c4147db4ea35db.tar.gz qemu-2f3a2bb15e665f23c885985226c4147db4ea35db.tar.xz qemu-2f3a2bb15e665f23c885985226c4147db4ea35db.zip |
exec: Remove unnecessary RAM_FILE flag
The only code that sets RAMBlock.fd is file_ram_alloc(), and the only
code that calls file_ram_alloc() sets the RAM_FILE flag. That means the
flag is always set when RAMBlock.fd >= 0, and the munmap() call at
reclaim_ramblock() is dead code that never runs.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <1446847881-9385-1-git-send-email-ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi-event.py')
0 files changed, 0 insertions, 0 deletions