summaryrefslogtreecommitdiffstats
path: root/drivers/usb/image
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-23 22:02:07 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-01 17:01:08 +0100
commitf10f4715bd6e383ebe3f20ac060cb8beecca47dc (patch)
treece6a2c770ffa253901d255afed7df54928975689 /drivers/usb/image
parent4f4ee7d87989df17aaca80a2e2d62b15d3f3cacc (diff)
downloadlinux-f10f4715bd6e383ebe3f20ac060cb8beecca47dc.tar.gz
linux-f10f4715bd6e383ebe3f20ac060cb8beecca47dc.tar.bz2
linux-f10f4715bd6e383ebe3f20ac060cb8beecca47dc.zip
usb: image: mdc800: mark expected switch fall-through
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>
Diffstat (limited to 'drivers/usb/image')
-rw-r--r--drivers/usb/image/mdc800.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/image/mdc800.c b/drivers/usb/image/mdc800.c
index e92540a21b6b..185c4e2db2a1 100644
--- a/drivers/usb/image/mdc800.c
+++ b/drivers/usb/image/mdc800.c
@@ -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;