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 <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20230516001718.317177-1-andrii@kernel.org
1 parent e1505c1 commit a820ca1

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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)