diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-10-05 09:12:34 +0200 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2018-11-01 02:20:05 +0100 |
commit | 846429bc998f4c42d9961c139ce82d0f76a51d35 (patch) | |
tree | 1ee3e1e529bca6f25bbc94d5fb0e54779cf54013 /drivers/ntb/ntb_transport.c | |
parent | ntb: idt: Set PCIe bus address to BARLIMITx (diff) | |
download | linux-846429bc998f4c42d9961c139ce82d0f76a51d35.tar.xz linux-846429bc998f4c42d9961c139ce82d0f76a51d35.zip |
ntb: ntb_transport: Mark expected switch fall-throughs
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 <gustavo@embeddedor.com>
Acked-by: Allen Hubbe <allenbh@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/ntb_transport.c')
-rw-r--r-- | drivers/ntb/ntb_transport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c index 939895966476..c643b9cf750b 100644 --- a/drivers/ntb/ntb_transport.c +++ b/drivers/ntb/ntb_transport.c @@ -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 = |