瀏覽代碼

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>
Gustavo A. R. Silva 7 年之前
父節點
當前提交
c2300cd67c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/usb/storage/sddr55.c

+ 1 - 0
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;