sysctl: drop sysctl_is_perm_empty_ctl_table
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 22 Mar 2024 17:05:56 +0000 (18:05 +0100)
committerJoel Granados <j.granados@samsung.com>
Wed, 24 Apr 2024 07:43:54 +0000 (09:43 +0200)
commiteb32d3adef461bc523c97321f19209f55512ee4a
tree80c4ef422341284a407e59ef9ebd0f6e544fe861
parent795f90c6f13c30484ff10355a6775979f57f78cb
sysctl: drop sysctl_is_perm_empty_ctl_table

It is used only twice and those callers are simpler with
sysctl_is_perm_empty_ctl_header().
So use this sibling function.

This is part of an effort to constify definition of struct ctl_table.
For this effort the mutable member 'type' is moved from
struct ctl_table to struct ctl_table_header.
Unifying the macros sysctl_is_perm_empty_ctl_* makes this easier.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Joel Granados <j.granados@samsung.com>
fs/proc/proc_sysctl.c