Commit 846429bc authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Jon Mason

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: default avatarAllen Hubbe <allenbh@gmail.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 37a3e969
...@@ -1278,6 +1278,7 @@ static void ntb_rx_copy_callback(void *data, ...@@ -1278,6 +1278,7 @@ static void ntb_rx_copy_callback(void *data,
case DMA_TRANS_READ_FAILED: case DMA_TRANS_READ_FAILED:
case DMA_TRANS_WRITE_FAILED: case DMA_TRANS_WRITE_FAILED:
entry->errors++; entry->errors++;
/* fall through */
case DMA_TRANS_ABORTED: case DMA_TRANS_ABORTED:
{ {
struct ntb_transport_qp *qp = entry->qp; struct ntb_transport_qp *qp = entry->qp;
...@@ -1533,6 +1534,7 @@ static void ntb_tx_copy_callback(void *data, ...@@ -1533,6 +1534,7 @@ static void ntb_tx_copy_callback(void *data,
case DMA_TRANS_READ_FAILED: case DMA_TRANS_READ_FAILED:
case DMA_TRANS_WRITE_FAILED: case DMA_TRANS_WRITE_FAILED:
entry->errors++; entry->errors++;
/* fall through */
case DMA_TRANS_ABORTED: case DMA_TRANS_ABORTED:
{ {
void __iomem *offset = void __iomem *offset =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment