samples/bpf: drop unnecessary fallthrough
Andrii Nakryiko
maintainerPATCH v2 1/1 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.
Signed-off-by Andrii Nakryiko <[email protected]>
--- samples/bpf/hbm.c | 1 - 1 file changed, 1 deletion(-)
samples/bpf/hbm.c +0 -1
@@ -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 ;
Signature · 1 line
2.34.1
Quoted 8 lines · Andrii Nakryiko
__fallthroughis 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.Signed-off-by Andrii Nakryiko <[email protected]>
Acked-by Yonghong Song <[email protected]>