aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-11-16 06:11:48 -0500
committerEric W. Biederman <ebiederm@xmission.com>2009-11-18 11:37:40 -0500
commit6d4561110a3e9fa742aeec6717248a491dfb1878 (patch)
tree689e2abf19940416ce597ba56ed31026ff59bd21 /arch/ia64/kernel
parent86926d0096279b9739ceeff40f68d3c33b9119a9 (diff)
sysctl: Drop & in front of every proc_handler.
For consistency drop & in front of every proc_handler. Explicity taking the address is unnecessary and it prevents optimizations like stubbing the proc_handlers to NULL. Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Joe Perches <joe@perches.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'arch/ia64/kernel')
-rw-r--r--arch/ia64/kernel/crash.c4
-rw-r--r--arch/ia64/kernel/perfmon.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/ia64/kernel/crash.c b/arch/ia64/kernel/crash.c
index 7c7d6a6dc0f7..b942f4032d7a 100644
--- a/arch/ia64/kernel/crash.c
+++ b/arch/ia64/kernel/crash.c
@@ -243,14 +243,14 @@ static ctl_table kdump_ctl_table[] = {
243 .data = &kdump_on_init, 243 .data = &kdump_on_init,
244 .maxlen = sizeof(int), 244 .maxlen = sizeof(int),
245 .mode = 0644, 245 .mode = 0644,
246 .proc_handler = &proc_dointvec, 246 .proc_handler = proc_dointvec,
247 }, 247 },
248 { 248 {
249 .procname = "kdump_on_fatal_mca", 249 .procname = "kdump_on_fatal_mca",
250 .data = &kdump_on_fatal_mca, 250 .data = &kdump_on_fatal_mca,
251 .maxlen = sizeof(int), 251 .maxlen = sizeof(int),
252 .mode = 0644, 252 .mode = 0644,
253 .proc_handler = &proc_dointvec, 253 .proc_handler = proc_dointvec,
254 }, 254 },
255 { } 255 { }
256}; 256};
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c
index ca30b3646405..402698b6689f 100644
--- a/arch/ia64/kernel/perfmon.c
+++ b/arch/ia64/kernel/perfmon.c
@@ -526,28 +526,28 @@ static ctl_table pfm_ctl_table[]={
526 .data = &pfm_sysctl.debug, 526 .data = &pfm_sysctl.debug,
527 .maxlen = sizeof(int), 527 .maxlen = sizeof(int),
528 .mode = 0666, 528 .mode = 0666,
529 .proc_handler = &proc_dointvec, 529 .proc_handler = proc_dointvec,
530 }, 530 },
531 { 531 {
532 .procname = "debug_ovfl", 532 .procname = "debug_ovfl",
533 .data = &pfm_sysctl.debug_ovfl, 533 .data = &pfm_sysctl.debug_ovfl,
534 .maxlen = sizeof(int), 534 .maxlen = sizeof(int),
535 .mode = 0666, 535 .mode = 0666,
536 .proc_handler = &proc_dointvec, 536 .proc_handler = proc_dointvec,
537 }, 537 },
538 { 538 {
539 .procname = "fastctxsw", 539 .procname = "fastctxsw",
540 .data = &pfm_sysctl.fastctxsw, 540 .data = &pfm_sysctl.fastctxsw,
541 .maxlen = sizeof(int), 541 .maxlen = sizeof(int),
542 .mode = 0600, 542 .mode = 0600,
543 .proc_handler = &proc_dointvec, 543 .proc_handler = proc_dointvec,
544 }, 544 },
545 { 545 {
546 .procname = "expert_mode", 546 .procname = "expert_mode",
547 .data = &pfm_sysctl.expert_mode, 547 .data = &pfm_sysctl.expert_mode,
548 .maxlen = sizeof(int), 548 .maxlen = sizeof(int),
549 .mode = 0600, 549 .mode = 0600,
550 .proc_handler = &proc_dointvec, 550 .proc_handler = proc_dointvec,
551 }, 551 },
552 {} 552 {}
553}; 553};