diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-20 19:07:46 -0500 |
---|---|---|
committer | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-20 19:44:01 -0500 |
commit | c3cb6674df4c4a70f949e412dfe2230483092523 (patch) | |
tree | 576358b07a9538ecd0d4dcf70422cba1fd10e103 /drivers/video | |
parent | da1fb2909e701ffbae8c5d6111f475603355e6e2 (diff) | |
download | linux-c3cb6674df4c4a70f949e412dfe2230483092523.tar.gz |
video: fbdev: acornfb: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through.
Fix the following warning (Building: rpc_defconfig arm):
drivers/video/fbdev/acornfb.c: In function ‘acornfb_parse_dram’:
drivers/video/fbdev/acornfb.c:860:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
size *= 1024;
~~~~~^~~~~~~
drivers/video/fbdev/acornfb.c:861:3: note: here
case 'K':
^~~~
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/acornfb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/acornfb.c b/drivers/video/fbdev/acornfb.c index 92f23e3bc27a..7cacae5a8797 100644 --- a/drivers/video/fbdev/acornfb.c +++ b/drivers/video/fbdev/acornfb.c @@ -858,6 +858,7 @@ static void acornfb_parse_dram(char *opt) case 'M': case 'm': size *= 1024; + /* Fall through */ case 'K': case 'k': size *= 1024; |