usb: class: usbtmc: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Wed, 25 Oct 2017 02:53:09 +0000 (21:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Oct 2017 10:40:15 +0000 (12:40 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c

index 6ebfabf..6adceac 100644 (file)
@@ -1343,6 +1343,7 @@ static void usbtmc_interrupt(struct urb *urb)
        case -EOVERFLOW:
                dev_err(dev, "overflow with length %d, actual length is %d\n",
                        data->iin_wMaxPacketSize, urb->actual_length);
+               /* fall through */
        case -ECONNRESET:
        case -ENOENT:
        case -ESHUTDOWN: