Skip to contentSkip to conversation

usb: gadget: serial: 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: gadget: serial: mark expected switch fall-through

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

Addresses-Coverity-ID: 1350962

---
 drivers/usb/gadget/function/u_serial.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/function/u_serial.c +1 -0
index 4176216..961457e 100644
@@ -1078,6 +1078,7 @@ static void gs_complete_out(struct usb_ep *ep, struct usb_request *req)
 	default:
 		pr_warn("%s: unexpected %s status %d\n",
 			__func__, ep->name, req->status);
+		/* fall through */
 	case 0:
 		/* normal completion */
 		spin_lock(&info->con_lock);
Signature · 1 line
2.7.4