diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2022-12-21 20:55:29 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-12-22 15:48:11 +0100 |
commit | cfca00767febba5f4f5e300fab10e0974491dd4b (patch) | |
tree | 78d5e4649589733d576918e7ed365520e99b3b68 /kernel | |
parent | 5fbf8c24b66d8d63fd6a452fc60e7e11d98ac5f6 (diff) | |
download | linux-cfca00767febba5f4f5e300fab10e0974491dd4b.tar.gz linux-cfca00767febba5f4f5e300fab10e0974491dd4b.tar.bz2 linux-cfca00767febba5f4f5e300fab10e0974491dd4b.zip |
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 <ribalda@chromium.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20221221-bpf-syscall-v1-0-9550f5f2c3fc@chromium.org
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 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, }, |