summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2025-03-27 15:32:59 +0000
committerTom Rini <trini@konsulko.com>2025-04-08 16:23:51 -0600
commit26b2482f124ba831e40a44ea0cb093203fd8d747 (patch)
treed0e2c9972007848148cef93ad14e0f15a4c3ce33 /net/net.c
parent2938eb1e022d7e1de23d89f941bc07b0776a2549 (diff)
use proper fallthrough annotations
In some cases in the generic code, we were already using switch/case fallthrough annotations comments, though in a way which might not be understood by most compilers. Replace two non-standard /* no break */ comments with our fallthrough; statement-like macro, to make this visible to the compiler. Also use this macro in place of an /* Fall through */ comment, to be more consistent. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c2
1 files changed, 1 insertions, 1 deletions
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: