usb: wusbcore: wa-xfer: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 26 Oct 2017 00:57:21 +0000 (19:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 15:51:09 +0000 (16:51 +0100)
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/wusbcore/wa-xfer.c

index e70322b1dd020d27082273df2b394e1d526afabd..bee2404353d9b6d9fac258136985292b36a55897 100644 (file)
@@ -2156,6 +2156,7 @@ static void wa_complete_remaining_xfer_segs(struct wa_xfer *xfer,
                 * do not increment RPIPE avail for the WA_SEG_DELAYED case
                 * since it has not been submitted to the RPIPE.
                 */
+               /* fall through */
                case WA_SEG_DELAYED:
                        xfer->segs_done++;
                        current_seg->status = status;