video: fbdev: arcfb: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 8 Oct 2018 10:57:37 +0000 (12:57 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 8 Oct 2018 10:57:37 +0000 (12:57 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115017 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Jaya Kumar <jayalk@intworks.biz>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/arcfb.c

index 7e87d0d616581dbf2e58045b424198524d28b3f4..a48741aab24034dd9cd85249a5eb3fa2e354cdb1 100644 (file)
@@ -419,6 +419,8 @@ static int arcfb_ioctl(struct fb_info *info,
                        schedule();
                        finish_wait(&arcfb_waitq, &wait);
                }
+               /* fall through */
+
                case FBIO_GETCONTROL2:
                {
                        unsigned char ctl2;