summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2023-05-15 17:17:18 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2023-05-16 19:44:05 +0200
commita820ca1a739b7e3ee0ddb48bdfa3c09dc7cd4302 (patch)
tree8c929ef3fc9e19eedaa248c28d3b1e2cbc1d3552 /samples
parente1505c1cc8d527fcc5bcaf9c1ad82eed817e3e10 (diff)
downloadlwn-a820ca1a739b7e3ee0ddb48bdfa3c09dc7cd4302.tar.gz
lwn-a820ca1a739b7e3ee0ddb48bdfa3c09dc7cd4302.zip
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
Diffstat (limited to 'samples')
-rw-r--r--samples/bpf/hbm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/samples/bpf/hbm.c b/samples/bpf/hbm.c
index 6448b7826107..bf66277115e2 100644
--- a/samples/bpf/hbm.c
+++ b/samples/bpf/hbm.c
@@ -498,7 +498,6 @@ int main(int argc, char **argv)
"Option -%c requires an argument.\n\n",
optopt);
case 'h':
- __fallthrough;
default:
Usage();
return 0;