Skip to content

Commit 3af80b2

Browse files
Joelgranadosmcgrof
authored andcommitted
sgi-xp: Remove the now superfluous sentinel element from ctl_table array
This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) Remove sentinel from xpc_sys_xpc_hb and xpc_sys_xpc Signed-off-by: Joel Granados <j.granados@samsung.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
1 parent bd7ac73 commit 3af80b2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/misc/sgi-xp/xpc_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ static struct ctl_table xpc_sys_xpc_hb[] = {
110110
.proc_handler = proc_dointvec_minmax,
111111
.extra1 = &xpc_hb_check_min_interval,
112112
.extra2 = &xpc_hb_check_max_interval},
113-
{}
114113
};
115114
static struct ctl_table xpc_sys_xpc[] = {
116115
{
@@ -121,7 +120,6 @@ static struct ctl_table xpc_sys_xpc[] = {
121120
.proc_handler = proc_dointvec_minmax,
122121
.extra1 = &xpc_disengage_min_timelimit,
123122
.extra2 = &xpc_disengage_max_timelimit},
124-
{}
125123
};
126124

127125
static struct ctl_table_header *xpc_sysctl;

0 commit comments

Comments
 (0)