diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-08-11 15:23:27 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-09-13 08:01:39 +0200 |
commit | 99a9ef44dca4be93f60c38d83a79eaaf8c56548a (patch) | |
tree | 4eb268a541e8609891f32e6365f9cf1046328cad /scripts/qemu-gdb.py | |
parent | bba4e1b591531c087fce4ae501dc1ca299d8fb42 (diff) |
ui/curses.c: Clean up nextchr logic
Coverity identifies that at the top of the while(1) loop
in curses_refresh() the variable nextchr is always ERR,
and so the else case of the first if() is dead code.
Remove this dead code, and narrow the scope of the
nextchr variable to the place where it's used.
(This confused logic has been present since the curses
code was added to QEMU in 2008.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1470925407-23850-3-git-send-email-peter.maydell@linaro.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/qemu-gdb.py')
0 files changed, 0 insertions, 0 deletions