diff options
author | Ricardo Ribalda <[email protected]> | 2022-12-21 20:55:29 +0100 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-12-22 15:48:11 +0100 |
commit | cfca00767febba5f4f5e300fab10e0974491dd4b (patch) | |
tree | 78d5e4649589733d576918e7ed365520e99b3b68 /kernel/bpf/syscall.c | |
parent | 5fbf8c24b66d8d63fd6a452fc60e7e11d98ac5f6 (diff) |
bpf: Remove unused field initialization in bpf's ctl_table
Maxlen is used by standard proc_handlers such as proc_dointvec(), but in this
case we have our own proc_handler via bpf_stats_handler(). Therefore, remove
the initialization.
Signed-off-by: Ricardo Ribalda <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'kernel/bpf/syscall.c')
-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 35972afb6850..8e55456bd648 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -5319,7 +5319,6 @@ static struct ctl_table bpf_syscall_table[] = { { .procname = "bpf_stats_enabled", .data = &bpf_stats_enabled_key.key, - .maxlen = sizeof(bpf_stats_enabled_key), .mode = 0644, .proc_handler = bpf_stats_handler, }, |