diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-07-07 16:05:39 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-08-03 21:38:37 +0200 |
commit | ad04fae0de07580359b7ab3e19a678a775fdf07f (patch) | |
tree | 10cc2e12807445fb9036a549f163ee1c6faefbbe /drivers/video/fbdev/savage | |
parent | 85806f6d58f4db8aa398833ce46fedcd82ab58a1 (diff) |
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/savage')
-rw-r--r-- | drivers/video/fbdev/savage/savagefb_driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbdev/savage/savagefb_driver.c b/drivers/video/fbdev/savage/savagefb_driver.c index 3fd87aeb6c79..661398e40ff4 100644 --- a/drivers/video/fbdev/savage/savagefb_driver.c +++ b/drivers/video/fbdev/savage/savagefb_driver.c @@ -1859,8 +1859,7 @@ static int savage_init_hw(struct savagefb_par *par) vga_out8(0x3d4, 0x68, par); /* memory control 1 */ if ((vga_in8(0x3d5, par) & 0xC0) == (0x01 << 6)) RamSavage4[1] = 8; - - /*FALLTHROUGH*/ + fallthrough; case S3_SAVAGE2000: videoRam = RamSavage4[(config1 & 0xE0) >> 5] * 1024; |