usb: storage: sddr55: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 27 Oct 2017 20:49:28 +0000 (15:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Oct 2017 08:52:39 +0000 (09:52 +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/storage/sddr55.c

index 147c50b..b973da4 100644 (file)
@@ -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;