Skip to content

Commit 76702a2

Browse files
Tom Rixborkmann
Tom Rix
authored andcommitted
bpf: Remove unneeded break
A break is not needed if it is preceded by a return. Signed-off-by: Tom Rix <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 0e8b8d6 commit 76702a2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/bpf/syscall.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2913,7 +2913,6 @@ attach_type_to_prog_type(enum bpf_attach_type attach_type)
29132913
case BPF_CGROUP_INET_INGRESS:
29142914
case BPF_CGROUP_INET_EGRESS:
29152915
return BPF_PROG_TYPE_CGROUP_SKB;
2916-
break;
29172916
case BPF_CGROUP_INET_SOCK_CREATE:
29182917
case BPF_CGROUP_INET_SOCK_RELEASE:
29192918
case BPF_CGROUP_INET4_POST_BIND:

0 commit comments

Comments
 (0)