mmc: sdhci-xenon: mark expected switch fall-through
Subsystems (3)
PATCH 1/1 mmc: sdhci-xenon: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Warning level 2 was used: -Wimplicit-fallthrough=2
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/mmc/host/sdhci-xenon-phy.c | 1 + 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci-xenon-phy.c +1 -0
@@ -526,6 +526,7 @@ static bool xenon_emmc_phy_slow_mode(struct sdhci_host *host, ret = true;break ; } +/* else: fall through */ default : reg &= ~XENON_TIMING_ADJUST_SLOW_MODE ; ret = false;
Signature · 1 line
2.7.4
Ulf Hansson
AppliedQuoted 6 lines · Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Warning level 2 was used: -Wimplicit-fallthrough=2
Signed-off-by Gustavo A. R. Silva <[email protected]>
Thanks, applied for next!
Kind regards
Uffe
Quoted 19 lines
--- drivers/mmc/host/sdhci-xenon-phy.c | 1 + 1 file changed, 1 insertion(+)drivers/mmc/host/sdhci-xenon-phy.c +1
-1@@ -526,6 +526,7 @@ static bool xenon_emmc_phy_slow_mode(struct sdhci_host *host, ret = true;break ; } +/* else: fall through */ default : reg &= ~XENON_TIMING_ADJUST_SLOW_MODE ; ret = false; --2.7.4