summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-27 22:49:28 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-30 09:52:39 +0100
commitc2300cd67c9583c8084767dd4dac19287afc5498 (patch)
tree97681a447e1d111c047e699ff0b97544c742853d
parentMerge tag 'usb-ci-v4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff)
downloadlinux-c2300cd67c9583c8084767dd4dac19287afc5498.tar.xz
linux-c2300cd67c9583c8084767dd4dac19287afc5498.zip
usb: storage: sddr55: 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>
-rw-r--r--drivers/usb/storage/sddr55.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/storage/sddr55.c b/drivers/usb/storage/sddr55.c
index 147c50b3e00f..b973da42b593 100644
--- a/drivers/usb/storage/sddr55.c
+++ b/drivers/usb/storage/sddr55.c
@@ -604,6 +604,7 @@ static unsigned long sddr55_get_capacity(struct us_data *us) {
case 0x64:
info->pageshift = 8;
info->smallpageshift = 1;
+ /* fall through */
case 0x5d: // 5d is a ROM card with pagesize 512.
return 0x00200000;