Skip to content

Commit 7f76e46

Browse files
malaterrestorulf
authored andcommitted
mmc: jz4740: Annotate implicit fall through
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 <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 9a633f3 commit 7f76e46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mmc/host/jz4740_mmc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid)
743743
break;
744744

745745
jz_mmc_prepare_data_transfer(host);
746+
/* fall through */
746747

747748
case JZ4740_MMC_STATE_TRANSFER_DATA:
748749
if (host->use_dma) {
@@ -777,6 +778,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid)
777778
break;
778779
}
779780
jz4740_mmc_write_irq_reg(host, JZ_MMC_IRQ_DATA_TRAN_DONE);
781+
/* fall through */
780782

781783
case JZ4740_MMC_STATE_SEND_STOP:
782784
if (!req->stop)

0 commit comments

Comments
 (0)