Skip to contentSkip to conversation

usb: class: usbtmc: mark expected switch fall-through

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: class: usbtmc: mark expected switch fall-through

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

---
 drivers/usb/class/usbtmc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/class/usbtmc.c +1 -0
index 6ebfabf..6adceac 100644
@@ -1343,6 +1343,7 @@ static void usbtmc_interrupt(struct urb *urb)
 	case -EOVERFLOW:
 		dev_err(dev, "overflow with length %d, actual length is %d\n",
 			data->iin_wMaxPacketSize, urb->actual_length);
+		/* fall through */
 	case -ECONNRESET:
 	case -ENOENT:
 	case -ESHUTDOWN:
Signature · 1 line
2.7.4