Skip to content

Commit 846429b

Browse files
GustavoARSilvajonmason
authored andcommitted
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>
1 parent 37a3e96 commit 846429b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/ntb/ntb_transport.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,7 @@ static void ntb_rx_copy_callback(void *data,
12781278
case DMA_TRANS_READ_FAILED:
12791279
case DMA_TRANS_WRITE_FAILED:
12801280
entry->errors++;
1281+
/* fall through */
12811282
case DMA_TRANS_ABORTED:
12821283
{
12831284
struct ntb_transport_qp *qp = entry->qp;
@@ -1533,6 +1534,7 @@ static void ntb_tx_copy_callback(void *data,
15331534
case DMA_TRANS_READ_FAILED:
15341535
case DMA_TRANS_WRITE_FAILED:
15351536
entry->errors++;
1537+
/* fall through */
15361538
case DMA_TRANS_ABORTED:
15371539
{
15381540
void __iomem *offset =

0 commit comments

Comments
 (0)