platform/x86: dell-laptop: Mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 5 Jul 2018 20:38:07 +0000 (15:38 -0500)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 29 Nov 2018 00:13:25 +0000 (16:13 -0800)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/dell-laptop.c

index 06978c1..63121fd 100644 (file)
@@ -1565,8 +1565,10 @@ static ssize_t kbd_led_timeout_store(struct device *dev,
                switch (unit) {
                case KBD_TIMEOUT_DAYS:
                        value *= 24;
+                       /* fall through */
                case KBD_TIMEOUT_HOURS:
                        value *= 60;
+                       /* fall through */
                case KBD_TIMEOUT_MINUTES:
                        value *= 60;
                        unit = KBD_TIMEOUT_SECONDS;