mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
drivers/input: give the virtio decoder switches a statement to label
Both switches end with a bare default label and no statement after it, which a compiler is entitled to reject: a label has to label something. GCC for MIPS does, and the file is new enough that no configuration had compiled it yet. The next commit makes USBHOST_HIDKBD select INPUT_KEYBOARD, which pulls this file into twenty five configurations for the first time, ci20:jumbo among them, so fix it here rather than let that commit break them. Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
This commit is contained in:
parent
e00a3a0a2f
commit
04822698b1
1 changed files with 2 additions and 0 deletions
|
|
@ -143,6 +143,7 @@ uint32_t keyboard_translate_virtio_code(uint16_t keycode, bool *special)
|
|||
case KEY_F24:
|
||||
return KEYCODE_F24;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
*special = false;
|
||||
|
|
@ -275,6 +276,7 @@ uint32_t keyboard_translate_virtio_code(uint16_t keycode, bool *special)
|
|||
case KEY_KPDOT:
|
||||
return '.';
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue