projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e8b8d6
)
bpf: Remove unneeded break
author
Tom Rix
<trix@redhat.com>
Mon, 19 Oct 2020 17:38:46 +0000
(10:38 -0700)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Mon, 19 Oct 2020 18:40:21 +0000
(20:40 +0200)
A break is not needed if it is preceded by a return.
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20201019173846.1021-1-trix@redhat.com
kernel/bpf/syscall.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/syscall.c
b/kernel/bpf/syscall.c
index
1110ecd
..
8f50c9c
100644
(file)
--- a/
kernel/bpf/syscall.c
+++ b/
kernel/bpf/syscall.c
@@
-2913,7
+2913,6
@@
attach_type_to_prog_type(enum bpf_attach_type attach_type)
case BPF_CGROUP_INET_INGRESS:
case BPF_CGROUP_INET_EGRESS:
return BPF_PROG_TYPE_CGROUP_SKB;
- break;
case BPF_CGROUP_INET_SOCK_CREATE:
case BPF_CGROUP_INET_SOCK_RELEASE:
case BPF_CGROUP_INET4_POST_BIND: