bpf: Remove unused field initialization in bpf's ctl_table
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 21 Dec 2022 19:55:29 +0000 (20:55 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 22 Dec 2022 14:48:11 +0000 (15:48 +0100)
commitcfca00767febba5f4f5e300fab10e0974491dd4b
tree78d5e4649589733d576918e7ed365520e99b3b68
parent5fbf8c24b66d8d63fd6a452fc60e7e11d98ac5f6
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
kernel/bpf/syscall.c