diff options
| author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-10-12 17:11:32 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-10-14 21:24:44 -0400 |
| commit | ec0d0987f084cdaf7b7ff8bd8f9f946e29fb8d94 (patch) | |
| tree | a53a2ae7020ca618bae26d84fccf65141b331028 /drivers/atm | |
| parent | 8bc46548771cec134aa4c86f7cdf4e019f9f2a85 (diff) | |
atm: fore200e: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
| -rw-r--r-- | drivers/atm/fore200e.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index f8b7e86907cc..126855e6cb7d 100644 --- a/drivers/atm/fore200e.c +++ b/drivers/atm/fore200e.c | |||
| @@ -358,26 +358,33 @@ fore200e_shutdown(struct fore200e* fore200e) | |||
| 358 | case FORE200E_STATE_COMPLETE: | 358 | case FORE200E_STATE_COMPLETE: |
| 359 | kfree(fore200e->stats); | 359 | kfree(fore200e->stats); |
| 360 | 360 | ||
| 361 | /* fall through */ | ||
| 361 | case FORE200E_STATE_IRQ: | 362 | case FORE200E_STATE_IRQ: |
| 362 | free_irq(fore200e->irq, fore200e->atm_dev); | 363 | free_irq(fore200e->irq, fore200e->atm_dev); |
| 363 | 364 | ||
| 365 | /* fall through */ | ||
| 364 | case FORE200E_STATE_ALLOC_BUF: | 366 | case FORE200E_STATE_ALLOC_BUF: |
| 365 | fore200e_free_rx_buf(fore200e); | 367 | fore200e_free_rx_buf(fore200e); |
| 366 | 368 | ||
| 369 | /* fall through */ | ||
| 367 | case FORE200E_STATE_INIT_BSQ: | 370 | case FORE200E_STATE_INIT_BSQ: |
| 368 | fore200e_uninit_bs_queue(fore200e); | 371 | fore200e_uninit_bs_queue(fore200e); |
| 369 | 372 | ||
| 373 | /* fall through */ | ||
| 370 | case FORE200E_STATE_INIT_RXQ: | 374 | case FORE200E_STATE_INIT_RXQ: |
| 371 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_rxq.status); | 375 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_rxq.status); |
| 372 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_rxq.rpd); | 376 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_rxq.rpd); |
| 373 | 377 | ||
| 378 | /* fall through */ | ||
| 374 | case FORE200E_STATE_INIT_TXQ: | 379 | case FORE200E_STATE_INIT_TXQ: |
| 375 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.status); | 380 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.status); |
| 376 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.tpd); | 381 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.tpd); |
| 377 | 382 | ||
| 383 | /* fall through */ | ||
| 378 | case FORE200E_STATE_INIT_CMDQ: | 384 | case FORE200E_STATE_INIT_CMDQ: |
| 379 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_cmdq.status); | 385 | fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_cmdq.status); |
| 380 | 386 | ||
| 387 | /* fall through */ | ||
| 381 | case FORE200E_STATE_INITIALIZE: | 388 | case FORE200E_STATE_INITIALIZE: |
| 382 | /* nothing to do for that state */ | 389 | /* nothing to do for that state */ |
| 383 | 390 | ||
| @@ -390,6 +397,7 @@ fore200e_shutdown(struct fore200e* fore200e) | |||
| 390 | case FORE200E_STATE_MAP: | 397 | case FORE200E_STATE_MAP: |
| 391 | fore200e->bus->unmap(fore200e); | 398 | fore200e->bus->unmap(fore200e); |
| 392 | 399 | ||
| 400 | /* fall through */ | ||
| 393 | case FORE200E_STATE_CONFIGURE: | 401 | case FORE200E_STATE_CONFIGURE: |
| 394 | /* nothing to do for that state */ | 402 | /* nothing to do for that state */ |
| 395 | 403 | ||
