mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
input-linux: fix Coverity warning
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 1458129049-12484-1-git-send-email-kraxel@redhat.com
This commit is contained in:
parent
0e066b2cc5
commit
81b00c968a
1 changed files with 7 additions and 0 deletions
|
@ -213,6 +213,13 @@ static void input_linux_event_keyboard(void *opaque)
|
||||||
*/
|
*/
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (event.code >= KEY_CNT) {
|
||||||
|
/*
|
||||||
|
* Should not happen. But better safe than sorry,
|
||||||
|
* and we make Coverity happy too.
|
||||||
|
*/
|
||||||
|
continue;
|
||||||
|
}
|
||||||
/* keep track of key state */
|
/* keep track of key state */
|
||||||
if (!il->keydown[event.code] && event.value) {
|
if (!il->keydown[event.code] && event.value) {
|
||||||
il->keydown[event.code] = true;
|
il->keydown[event.code] = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue