diff --git a/common/command.c b/common/command.c index 3f691399cbe..0f9dd06d72b 100644 --- a/common/command.c +++ b/common/command.c @@ -484,7 +484,7 @@ int cmd_get_data_size(const char *arg, int default_size) case 'q': if (MEM_SUPPORT_64BIT_DATA) return 8; - /* no break */ + fallthrough; default: return CMD_DATA_SIZE_ERR; } diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c index 0503c17341f..b8fc8355c4a 100644 --- a/lib/tiny-printf.c +++ b/lib/tiny-printf.c @@ -282,7 +282,7 @@ static int _vprintf(struct printf_info *info, const char *fmt, va_list va) break; } islong = true; - /* no break */ + fallthrough; case 'x': if (islong) { num = va_arg(va, unsigned long); diff --git a/net/net.c b/net/net.c index 1828f1cca36..5219367e391 100644 --- a/net/net.c +++ b/net/net.c @@ -1559,7 +1559,7 @@ common: puts("*** ERROR: `ipaddr' not set\n"); return 1; } - /* Fall through */ + fallthrough; #ifdef CONFIG_CMD_RARP case RARP: