diff options
author | Tom Rix <trix@redhat.com> | 2020-10-19 10:38:46 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-10-19 20:40:21 +0200 |
commit | 76702a2e7280594a0add4c1283623c81a868373f (patch) | |
tree | 1363e50fad625a344d0e9d7d6d3626080330c04f /kernel | |
parent | 0e8b8d6a2d85344d80dda5beadd98f5f86e8d3d3 (diff) |
bpf: Remove unneeded break
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
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/bpf/syscall.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 1110ecd7d1f3..8f50c9c19f1b 100644 --- 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: |