Skip to contentSkip to conversation

usb: core: urb: mark expected switch fall-through

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: core: urb: mark expected switch fall-through

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

Addresses-Coverity-ID: 1162594

---
 drivers/usb/core/urb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/core/urb.c +1 -0
index 8b800e3..06e0151 100644
@@ -514,6 +514,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
 			if ((urb->interval < 6)
 				&& (xfertype == USB_ENDPOINT_XFER_INT))
 				return -EINVAL;
+			/* fall through */
 		default:
 			if (urb->interval <= 0)
 				return -EINVAL;
Signature · 1 line
2.7.4