summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-05-10 17:29:48 -0600
committerPatrick Georgi <pgeorgi@google.com>2019-05-13 09:24:27 +0000
commitdbc787d13d461bf0d96002bfc36936de4c64cea7 (patch)
treeb8d0113044acaf91591b69d5c12c337a575fd9b7 /payloads
parenta75440739d172bea6eeefc08af2bbdefc528e912 (diff)
libpayload/drivers/i8042: Add fallthrough comment
Ctrl-delete does nothing, so it falls through to the default case. Add a comment to make this explicit. Found-by: Coverity Scan #1260878 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Change-Id: I4a6f51cb04696b6ebcb554c5667a5bbea58622c1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32750 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/drivers/i8042/keyboard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/drivers/i8042/keyboard.c b/payloads/libpayload/drivers/i8042/keyboard.c
index 42431c3689..cded638380 100644
--- a/payloads/libpayload/drivers/i8042/keyboard.c
+++ b/payloads/libpayload/drivers/i8042/keyboard.c
@@ -258,6 +258,7 @@ int keyboard_getchar(void)
/* vulcan nerve pinch */
if ((modifier & KB_MOD_ALT) && reset_handler)
reset_handler();
+ /* fallthrough */
default:
ret = 0;
}