Skip to content

Commit 451e319

Browse files
malaterrestorulf
authored andcommitted
mmc: core: annotate implicit fall through
There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1). In this particular case rewrote the comment to start with the string "fall through", so as to match the regular expression expected by GCC. Truncate the comment slightly to fit the max line length of 80 characters. This commit remove the following warning: drivers/mmc/core/host.c:196:14: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre <[email protected]> Acked-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent de25fa5 commit 451e319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/core/host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int mmc_of_parse(struct mmc_host *host)
194194
switch (bus_width) {
195195
case 8:
196196
host->caps |= MMC_CAP_8_BIT_DATA;
197-
/* Hosts capable of 8-bit transfers can also do 4 bits */
197+
/* fall through - Hosts capable of 8-bit can also do 4 bits */
198198
case 4:
199199
host->caps |= MMC_CAP_4_BIT_DATA;
200200
break;

0 commit comments

Comments
 (0)