]> Git Repo - qemu.git/commit
qht: simplify qht_reset_size
authorEmilio G. Cota <[email protected]>
Wed, 5 Oct 2016 22:34:38 +0000 (18:34 -0400)
committerPaolo Bonzini <[email protected]>
Thu, 6 Oct 2016 16:04:13 +0000 (18:04 +0200)
commitf555a9d0b3c785b698f32e6879e97d0a4b387314
tree9cfe5ac58bc6918006bb7a36a836df36113a6170
parente424b6550f486b2a9ab32b13c3824021199bac54
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 <[email protected]>
Message-Id: <1475706880[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
util/qht.c
This page took 0.02421 seconds and 4 git commands to generate.