Skip to content

Commit a820ca1

Browse files
anakryikoborkmann
authored andcommitted
samples/bpf: Drop unnecessary fallthrough
__fallthrough is now not supported. Instead of renaming it to now-canonical ([0]) fallthrough pseudo-keyword, just get rid of it and equate 'h' case to default case, as both emit usage information and succeed. [0] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent e1505c1 commit a820ca1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

samples/bpf/hbm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ int main(int argc, char **argv)
498498
"Option -%c requires an argument.\n\n",
499499
optopt);
500500
case 'h':
501-
__fallthrough;
502501
default:
503502
Usage();
504503
return 0;

0 commit comments

Comments
 (0)