usb: image: mdc800: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 24 Oct 2017 03:02:07 +0000 (22:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 16:01:08 +0000 (17:01 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/image/mdc800.c

index e92540a21b6b5aa886888b0ea215063414a8fce2..185c4e2db2a1aff0f0d58620d898a2b4aa8a07a8 100644 (file)
@@ -893,6 +893,7 @@ static ssize_t mdc800_device_write (struct file *file, const char __user *buf, s
                                                return -EIO;
                                        }
                                        mdc800->pic_len=-1;
+                                       /* fall through */
 
                                case 0x09: /* Download Thumbnail */
                                        mdc800->download_left=answersize+64;