From: Gustavo A. R. Silva Date: Tue, 24 Oct 2017 03:15:46 +0000 (-0500) Subject: usb: gadget: serial: mark expected switch fall-through X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fdb5e4fa1aedb91d900cd7719a0bfb92b4122c53;p=linux.git 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 Signed-off-by: Gustavo A. R. Silva Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/function/u_serial.c b/drivers/usb/gadget/function/u_serial.c index 4176216d54be7..961457ef5a1c1 100644 --- a/drivers/usb/gadget/function/u_serial.c +++ b/drivers/usb/gadget/function/u_serial.c @@ -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);