OSDN Git Service

USB: mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 28 Jun 2018 18:37:22 +0000 (13:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Jul 2018 16:08:19 +0000 (18:08 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/appledisplay.c
drivers/usb/renesas_usbhs/mod_gadget.c

index b3eb8b9..d746c26 100644 (file)
@@ -89,6 +89,7 @@ static void appledisplay_complete(struct urb *urb)
                dev_err(dev,
                        "OVERFLOW with data length %d, actual length is %d\n",
                        ACD_URB_BUFFER_LEN, pdata->urb->actual_length);
+               /* fall through */
        case -ECONNRESET:
        case -ENOENT:
        case -ESHUTDOWN:
index 33d059c..59cac40 100644 (file)
@@ -502,6 +502,7 @@ static int usbhsg_irq_ctrl_stage(struct usbhs_priv *priv,
        case READ_STATUS_STAGE:
        case WRITE_STATUS_STAGE:
                usbhs_dcp_control_transfer_done(pipe);
+               /* fall through */
        default:
                return ret;
        }