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>
This commit is contained in:
parent
8bc4654877
commit
ec0d0987f0
1 changed files with 8 additions and 0 deletions
|
@ -358,26 +358,33 @@ fore200e_shutdown(struct fore200e* fore200e)
|
||||||
case FORE200E_STATE_COMPLETE:
|
case FORE200E_STATE_COMPLETE:
|
||||||
kfree(fore200e->stats);
|
kfree(fore200e->stats);
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
case FORE200E_STATE_IRQ:
|
case FORE200E_STATE_IRQ:
|
||||||
free_irq(fore200e->irq, fore200e->atm_dev);
|
free_irq(fore200e->irq, fore200e->atm_dev);
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
case FORE200E_STATE_ALLOC_BUF:
|
case FORE200E_STATE_ALLOC_BUF:
|
||||||
fore200e_free_rx_buf(fore200e);
|
fore200e_free_rx_buf(fore200e);
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
case FORE200E_STATE_INIT_BSQ:
|
case FORE200E_STATE_INIT_BSQ:
|
||||||
fore200e_uninit_bs_queue(fore200e);
|
fore200e_uninit_bs_queue(fore200e);
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
case FORE200E_STATE_INIT_RXQ:
|
case FORE200E_STATE_INIT_RXQ:
|
||||||
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_rxq.status);
|
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_rxq.status);
|
||||||
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_rxq.rpd);
|
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_rxq.rpd);
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
case FORE200E_STATE_INIT_TXQ:
|
case FORE200E_STATE_INIT_TXQ:
|
||||||
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.status);
|
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.status);
|
||||||
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.tpd);
|
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.tpd);
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
case FORE200E_STATE_INIT_CMDQ:
|
case FORE200E_STATE_INIT_CMDQ:
|
||||||
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_cmdq.status);
|
fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_cmdq.status);
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
case FORE200E_STATE_INITIALIZE:
|
case FORE200E_STATE_INITIALIZE:
|
||||||
/* nothing to do for that state */
|
/* nothing to do for that state */
|
||||||
|
|
||||||
|
@ -390,6 +397,7 @@ fore200e_shutdown(struct fore200e* fore200e)
|
||||||
case FORE200E_STATE_MAP:
|
case FORE200E_STATE_MAP:
|
||||||
fore200e->bus->unmap(fore200e);
|
fore200e->bus->unmap(fore200e);
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
case FORE200E_STATE_CONFIGURE:
|
case FORE200E_STATE_CONFIGURE:
|
||||||
/* nothing to do for that state */
|
/* nothing to do for that state */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue