]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
usb: storage: uas: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 24 Oct 2017 16:48:19 +0000 (11:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 16:01:06 +0000 (17:01 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115016
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c

index 63cf981ed81cf8c30eadae32bc36c40499566bdc..bd4671d5dfc393fceef63d53e2fe951aa529e269 100644 (file)
@@ -668,6 +668,7 @@ static int uas_queuecommand_lck(struct scsi_cmnd *cmnd,
                break;
        case DMA_BIDIRECTIONAL:
                cmdinfo->state |= ALLOC_DATA_IN_URB | SUBMIT_DATA_IN_URB;
+               /* fall through */
        case DMA_TO_DEVICE:
                cmdinfo->state |= ALLOC_DATA_OUT_URB | SUBMIT_DATA_OUT_URB;
        case DMA_NONE: