Skip to contentSkip to conversation

usb: image: mdc800: mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Oct 24, 2017 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: image: mdc800: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

---
 drivers/usb/image/mdc800.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/image/mdc800.c +1 -0
index e92540a..185c4e2 100644
@@ -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;
Signature · 1 line
2.7.4