From 12382ad98ca06afb7ce4dce53aebf115b5f6b948 Mon Sep 17 00:00:00 2001 From: Gustavo A. R. Silva Date: Tue, 24 Jul 2018 19:11:28 +0200 Subject: video: fbdev: mark expected switch fall-throughs In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva Cc: Florian Tobias Schandinat Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/tdfxfb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/video/fbdev/tdfxfb.c') diff --git a/drivers/video/fbdev/tdfxfb.c b/drivers/video/fbdev/tdfxfb.c index dec1fed9880e..fbbf26b170f7 100644 --- a/drivers/video/fbdev/tdfxfb.c +++ b/drivers/video/fbdev/tdfxfb.c @@ -522,6 +522,7 @@ static int tdfxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) case 32: var->transp.offset = 24; var->transp.length = 8; + /* fall through */ case 24: var->red.offset = 16; var->green.offset = 8; -- cgit v1.2.3