diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-16 06:11:48 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-18 11:37:40 -0500 |
commit | 6d4561110a3e9fa742aeec6717248a491dfb1878 (patch) | |
tree | 689e2abf19940416ce597ba56ed31026ff59bd21 /drivers/cdrom | |
parent | 86926d0096279b9739ceeff40f68d3c33b9119a9 (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 'drivers/cdrom')
-rw-r--r-- | drivers/cdrom/cdrom.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index 1872b6dc168a..e3749d0ba68b 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c | |||
@@ -3557,42 +3557,42 @@ static ctl_table cdrom_table[] = { | |||
3557 | .data = &cdrom_sysctl_settings.info, | 3557 | .data = &cdrom_sysctl_settings.info, |
3558 | .maxlen = CDROM_STR_SIZE, | 3558 | .maxlen = CDROM_STR_SIZE, |
3559 | .mode = 0444, | 3559 | .mode = 0444, |
3560 | .proc_handler = &cdrom_sysctl_info, | 3560 | .proc_handler = cdrom_sysctl_info, |
3561 | }, | 3561 | }, |
3562 | { | 3562 | { |
3563 | .procname = "autoclose", | 3563 | .procname = "autoclose", |
3564 | .data = &cdrom_sysctl_settings.autoclose, | 3564 | .data = &cdrom_sysctl_settings.autoclose, |
3565 | .maxlen = sizeof(int), | 3565 | .maxlen = sizeof(int), |
3566 | .mode = 0644, | 3566 | .mode = 0644, |
3567 | .proc_handler = &cdrom_sysctl_handler, | 3567 | .proc_handler = cdrom_sysctl_handler, |
3568 | }, | 3568 | }, |
3569 | { | 3569 | { |
3570 | .procname = "autoeject", | 3570 | .procname = "autoeject", |
3571 | .data = &cdrom_sysctl_settings.autoeject, | 3571 | .data = &cdrom_sysctl_settings.autoeject, |
3572 | .maxlen = sizeof(int), | 3572 | .maxlen = sizeof(int), |
3573 | .mode = 0644, | 3573 | .mode = 0644, |
3574 | .proc_handler = &cdrom_sysctl_handler, | 3574 | .proc_handler = cdrom_sysctl_handler, |
3575 | }, | 3575 | }, |
3576 | { | 3576 | { |
3577 | .procname = "debug", | 3577 | .procname = "debug", |
3578 | .data = &cdrom_sysctl_settings.debug, | 3578 | .data = &cdrom_sysctl_settings.debug, |
3579 | .maxlen = sizeof(int), | 3579 | .maxlen = sizeof(int), |
3580 | .mode = 0644, | 3580 | .mode = 0644, |
3581 | .proc_handler = &cdrom_sysctl_handler, | 3581 | .proc_handler = cdrom_sysctl_handler, |
3582 | }, | 3582 | }, |
3583 | { | 3583 | { |
3584 | .procname = "lock", | 3584 | .procname = "lock", |
3585 | .data = &cdrom_sysctl_settings.lock, | 3585 | .data = &cdrom_sysctl_settings.lock, |
3586 | .maxlen = sizeof(int), | 3586 | .maxlen = sizeof(int), |
3587 | .mode = 0644, | 3587 | .mode = 0644, |
3588 | .proc_handler = &cdrom_sysctl_handler, | 3588 | .proc_handler = cdrom_sysctl_handler, |
3589 | }, | 3589 | }, |
3590 | { | 3590 | { |
3591 | .procname = "check_media", | 3591 | .procname = "check_media", |
3592 | .data = &cdrom_sysctl_settings.check, | 3592 | .data = &cdrom_sysctl_settings.check, |
3593 | .maxlen = sizeof(int), | 3593 | .maxlen = sizeof(int), |
3594 | .mode = 0644, | 3594 | .mode = 0644, |
3595 | .proc_handler = &cdrom_sysctl_handler | 3595 | .proc_handler = cdrom_sysctl_handler |
3596 | }, | 3596 | }, |
3597 | { } | 3597 | { } |
3598 | }; | 3598 | }; |