Skip to content

Commit

Permalink
mmc: jz4740: Annotate implicit fall through
Browse files Browse the repository at this point in the history
There is a plan to build the kernel with -Wimplicit-fallthrough and
these places in the code produced warnings (W=1).

This commit removes the following warnings:

  drivers/mmc/host/jz4740_mmc.c:745:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
  drivers/mmc/host/jz4740_mmc.c:779:3: warning: this statement may fall through [-Wimplicit-fallthrough=]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Mathieu Malaterre authored and Ulf Hansson committed Feb 25, 2019
1 parent 9a633f3 commit 7f76e46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mmc/host/jz4740_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid)
break;

jz_mmc_prepare_data_transfer(host);
/* fall through */

case JZ4740_MMC_STATE_TRANSFER_DATA:
if (host->use_dma) {
Expand Down Expand Up @@ -777,6 +778,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid)
break;
}
jz4740_mmc_write_irq_reg(host, JZ_MMC_IRQ_DATA_TRAN_DONE);
/* fall through */

case JZ4740_MMC_STATE_SEND_STOP:
if (!req->stop)
Expand Down

0 comments on commit 7f76e46

Please sign in to comment.