diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-07-08 00:05:39 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-08-03 22:38:37 +0300 |
commit | ad04fae0de07580359b7ab3e19a678a775fdf07f (patch) | |
tree | 10cc2e12807445fb9036a549f163ee1c6faefbbe /drivers/video/fbdev/tdfxfb.c | |
parent | 85806f6d58f4db8aa398833ce46fedcd82ab58a1 (diff) | |
download | linux-ad04fae0de07580359b7ab3e19a678a775fdf07f.tar.xz |
fbdev: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.
[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200707210539.GA12530@embeddedor
Diffstat (limited to 'drivers/video/fbdev/tdfxfb.c')
-rw-r--r-- | drivers/video/fbdev/tdfxfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/tdfxfb.c b/drivers/video/fbdev/tdfxfb.c index f73e26c18c09..f056d80f6359 100644 --- a/drivers/video/fbdev/tdfxfb.c +++ b/drivers/video/fbdev/tdfxfb.c @@ -523,7 +523,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 */ + fallthrough; case 24: var->red.offset = 16; var->green.offset = 8; |