Skip to contentSkip to conversation

usb: storage: sddr55: mark expected switch fall-through

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

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: storage: sddr55: mark expected switch fall-through

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

---
 drivers/usb/storage/sddr55.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/storage/sddr55.c +1 -0
index 147c50b..b973da4 100644
@@ -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;
 
Signature · 1 line
2.7.4