]> git.ipfire.org Git - thirdparty/qemu.git/commit
qht: simplify qht_reset_size
authorEmilio G. Cota <cota@braap.org>
Wed, 5 Oct 2016 22:34:38 +0000 (18:34 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 2 Nov 2016 22:14:57 +0000 (17:14 -0500)
commitf72ca1ac6f7513537a4e8f2032aa0c4ca4013b72
treec3e807076f7df8e46c630a5222e5b6433f785bae
parent4d45fe11d1032326dfb623e72f1379835a71b1c6
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>
(cherry picked from commit f555a9d0b3c785b698f32e6879e97d0a4b387314)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
util/qht.c