diff options
| author | Emilio G. Cota | 2016-10-06 00:34:38 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-10-06 18:04:13 +0200 |
| commit | f555a9d0b3c785b698f32e6879e97d0a4b387314 (patch) | |
| tree | 9cfe5ac58bc6918006bb7a36a836df36113a6170 /scripts/switch-timer-api | |
| parent | qemu-nbd: Shrink image size by specified offset (diff) | |
| download | qemu-f555a9d0b3c785b698f32e6879e97d0a4b387314.tar.gz qemu-f555a9d0b3c785b698f32e6879e97d0a4b387314.tar.xz qemu-f555a9d0b3c785b698f32e6879e97d0a4b387314.zip | |
qht: simplify qht_reset_size
Sometimes gcc doesn't pick up the fact that 'new' is properly
set if 'resize == true', which may generate an unnecessary
build warning.
Fix it by removing 'resize' and directly checking that 'new'
is non-NULL.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <1475706880-10667-2-git-send-email-cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
