]> Git Repo - linux.git/commitdiff
ntb: ntb_transport: Mark expected switch fall-throughs
authorGustavo A. R. Silva <[email protected]>
Fri, 5 Oct 2018 07:12:34 +0000 (09:12 +0200)
committerJon Mason <[email protected]>
Thu, 1 Nov 2018 01:20:05 +0000 (21:20 -0400)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1373888 ("Missing break in switch")
Addresses-Coverity-ID: 1373889 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Acked-by: Allen Hubbe <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
drivers/ntb/ntb_transport.c

index 9398959664769b5f6cd3c79e4914199d1cf35f0d..c643b9cf750bd77cdb569832641a095c5d9cf249 100644 (file)
@@ -1278,6 +1278,7 @@ static void ntb_rx_copy_callback(void *data,
                case DMA_TRANS_READ_FAILED:
                case DMA_TRANS_WRITE_FAILED:
                        entry->errors++;
+                       /* fall through */
                case DMA_TRANS_ABORTED:
                {
                        struct ntb_transport_qp *qp = entry->qp;
@@ -1533,6 +1534,7 @@ static void ntb_tx_copy_callback(void *data,
                case DMA_TRANS_READ_FAILED:
                case DMA_TRANS_WRITE_FAILED:
                        entry->errors++;
+                       /* fall through */
                case DMA_TRANS_ABORTED:
                {
                        void __iomem *offset =
This page took 0.074129 seconds and 4 git commands to generate.