usb: gadget: serial: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 24 Oct 2017 03:15:46 +0000 (22:15 -0500)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Oct 2017 09:31:24 +0000 (12:31 +0300)
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 <garsilva@embeddedor.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/u_serial.c

index 4176216..961457e 100644 (file)
@@ -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);